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
'transpose
;suppress printing (also end of row, when ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.