M1.9. Summary of Commonly Used Commands

axisaxis limits for plots
clearremoves all variables from workspace
diarysave the text of a MATLAB session
endend of loop
expexponential function
figure(n)generates a figure window
forgenerates loop structure
formatoutput display format
functionuser generated function
gtextplace text on a plot
helphelp function
holdholds current plot and allows new plot to be placed on current plot
ifconditional test
lengthlength of a vector
lookforkeyword search on help variables
plotplots vectors
sizesize of the array (rows, columns)
subplotmultiple plots in a figure window
whoview variables in workspace
whosview variables in workspace, with more detail (size, etc.)
*matrix multiplication
;suppress printing (also end of row, when ...

Get Process Control: Modeling, Design, and Simulation now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.