Getting Started    

Plotting Lines and Markers

If you specify a marker type but not a linestyle, 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. You may 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.


  Specifying Line Styles and Colors Imaginary and Complex Data