MATLAB Quick Guide
MATLAB Quick Guide
0. General
Semi-colons are used to suppress the output to the command window, if you don’t wish the output of a line of script to
appear in the command window place a semi-colon at the end of the line.
MATLAB is case sensitive, it is easier to keep all variable and function names lower-case. Make sure when you save m
files they are in lower case too. We use uppercases for global variables.
MATLAB is fairly forgiving when adding spaces to your code, however ensure there is no space between a function
name and the brackets containing the input arguments.
In the below examples the >> is used to specify that this is an inputted line of code, rather than an output.
clc clears the command window.
clear clears the workspace.