This is not meant as a reference to the language. For that you should read the manual
The first few are drawn from here
- Use brackets to index into vectors and matrices, i.e. do
v[i]instead ofv(i). - Array assigment is done by reference, i.e after
A = BmodifyingAwill modifyB! - One dimensional vectors are column vectors by default.
[17, 42, 25]and[17;42;25]both create a column vector. To create a row vector do[17 42 25], this is really a 1-by-3 (two-dimensional matrix).