Getting Started Previous page   Next Page

Plotting Lines and Markers

If you specify a marker type but not a line style, MATLAB draws only the marker. For example,

plots black squares at each data point, but does not connect the markers with a line.

The statement

plots a red dotted line and places plus sign markers at each data point.

Placing Markers at Every Tenth Data Point

You might want to use fewer data points to plot the markers than you use to plot the lines. This example plots the data twice using a different number of points for the dotted line and marker plots:


Previous page  Specifying Line Styles and Colors Imaginary and Complex Data Next page

© 1994-2005 The MathWorks, Inc.