Difference between revisions of "Mus320"

From CCRMA Wiki
Jump to: navigation, search
(Common Matlab Trickiness)
Line 1: Line 1:
 
==Common Matlab Trickiness==
 
==Common Matlab Trickiness==
  
* Vector and matrix indices start at 1 (not 0).  If you are familiar with other programming languages such as C or C++, this might cause some slight difficulties in the beginning
+
* In matlab, vector and matrix indices start at 1 (not 0).  For example, to access the first element in the array x, use x(1). If you are familiar with other programming languages such as C or C++, this might cause some slight difficulties in the beginning
  
 
* The transpose operator ' (apostrophe) acts as a Hermitian transpose.  The Hermitian transpose takes the complex conjugate as well as the normal transpose of a matrix.  To take avoid taking the complex conjugate you can use .'
 
* The transpose operator ' (apostrophe) acts as a Hermitian transpose.  The Hermitian transpose takes the complex conjugate as well as the normal transpose of a matrix.  To take avoid taking the complex conjugate you can use .'
  
 
* Sound I/O on matlab is pretty basic.  For the linux machines, audio will sometimes be a problem if: a web browser is playing audio, JACK is running, some other audio program is locking the audio resources on your computer.
 
* Sound I/O on matlab is pretty basic.  For the linux machines, audio will sometimes be a problem if: a web browser is playing audio, JACK is running, some other audio program is locking the audio resources on your computer.

Revision as of 23:16, 24 September 2009

Common Matlab Trickiness

  • In matlab, vector and matrix indices start at 1 (not 0). For example, to access the first element in the array x, use x(1). If you are familiar with other programming languages such as C or C++, this might cause some slight difficulties in the beginning
  • The transpose operator ' (apostrophe) acts as a Hermitian transpose. The Hermitian transpose takes the complex conjugate as well as the normal transpose of a matrix. To take avoid taking the complex conjugate you can use .'
  • Sound I/O on matlab is pretty basic. For the linux machines, audio will sometimes be a problem if: a web browser is playing audio, JACK is running, some other audio program is locking the audio resources on your computer.