MatlabIntro

From CCRMA Wiki
Revision as of 11:42, 21 September 2010 by Jorgeh (Talk | contribs)

Jump to: navigation, search


Basics

  • Use semi-colon at the end of the line to prevent the output of the operation to be printed to the screen
>> x = [1 2 3 4 5]

x =

     1     2     3     4     5

vs.

>> x = [1 2 3 4 5];
>>


Vector and Matrices

  • Use square brackets to define a vector/matrix

x = [1 2 3 4 5]


General tips

  1. Try to vectorize every operation if you can