Introduction to MATLAB
- MATLAB: Matrix Laboratory
(a) Operation modes
- MATLAB may be executed in interpreter, compiler, or background mode Interpreter mode
* Type commands (statements) in the command window # A statement with semicolon at end: do not display result # A statement without semicolon: display result # Statements with commas: connect statements and display results # A statement of a single variable: just display the value # Percentage ('%'): comments # Each line is a single statement or connected statements
1
*# Use “…” for connecting a lengthy statement # E.g.:
>> (4+5)*20 % a