Page 40 -
P. 40
if Conditional evaluation.
length Gives the length of an array.
load Loads data or variable values from previous sessions
into current MATLAB session.
linspace Generates an array with a specified number of points
between two values.
meshgrid Makes a 2-D array of coordinate squares suitable for
plotting surface meshes.
mesh Plots a mesh surface of a surface stored in a matrix.
meshc The same as mesh, but also plots in the same figure
the contour plot.
min Finds the smallest element of an array.
max Finds the largest element of an array.
mean Finds the mean of the elements of an array.
moviein Creates the matrix that contains the frames of an ani-
mation.
movie Plays the movie described by a matrix M.
orient Orients the current graph to your needs.
plot Plots points or pairs of arrays on a 2-D graph.
plot3 Plots points or array triples on a 3-D graph.
polar Plots a polar plot on a polar grid.
pol2cart Polar to Cartesian conversion.
print Prints a figure to the default printer.
quit or exit Leave MATLAB program.
rand Generates an array with elements randomly chosen
from the uniform distribution over the interval [0, 1].
randn Generates an array with elements randomly chosen
from the normal distribution function with zero
mean and standard deviation 1.
subplot Partitions the graphics window into sub-windows.
save Saves MATLAB variables.
std Finds the standard deviation of the elements of an
array.
stem Plots the data sequence as stems from the x-axis ter-
minated with circles for the data value.
view Views 3-D graphics from different perspectives.
who Lists all variables in the workspace.
xlabel, ylabel, Labels the appropriate axes with text and title.
zlabel, title
(x>=x1) Boolean function that is equal to 1 when the condition
inside the parenthesis is satisfied, and zero otherwise.
© 2001 by CRC Press LLC