Optional: Special symbols. | ||
% | Comment delimiter. | % This is a comment. |
%% | Puts comment into MATLABŪ, C, Fortran codes. | %% Comment written to code. |
& | Multi-line continuation symbol | longLine = 1 + 2 + 3 + 4 + 5 &
+ 5 + 4 + 3 + 2 + 1 |
' | Denotes ordinary time-derivative | x' and x'' |
> | Last symbol in the name of a vector | Fred> |
[ ] | Used to designate the element of a matrix | Sue[2,3] = 57.4 |
, ; | Separates elements and rows in a matrix | A = [1, 2, 3; 4, 5, 6] |
: | Denotes a range | 2:5 denotes 2, 3, 4, 5 |
:= | Automatically overwrites an expressions | Keith = 3.8; Keith := 4.2 |