Graphics | ![]() ![]() |
Plotting Only the Data Points
To plot a marker at each data point without connecting the markers with lines, use a specification that does not contain a line style. For example, given two vectors,
x = 0:pi/15:4*pi; y = exp(2*cos(x));
calling plot
with only a color and marker specifier
plot(x,y,'r+')
plots a red plus sign at each data point.
See LineSpec
for a list of available line styles, markers, and colors.
![]() | Adding Plots to an Existing Graph | Plotting Markers and Lines | ![]() |