
68
MATLAB Graphics and Plotting
The first method (using single plot command) is useful when the functions to be plotted are
known a priori. However, if some of the functions are to be plotted based on some conditions,
the second method is useful.
3.4.2 Some Important Functions on Multiple Plots
The general form of the plot command used for multiple plots is:
plot (x1,y1, ‘style1’, x2,y2,‘style2’,...,xn,yn, ‘style-n’)
1. It plots multiple curves on the same graph. If the “style” argument is omitted, it will assume
a solid line.
2. Labeling of the graph can be accomplished using the commands: xlabel, ylabel,
title, and legend.
3. The argument ...