image thumbnail

MATLAB Plot Gallery - Standard Plot Markers

by

 

23 Feb 2012 (Updated )

Standard plot markers

Standard_Plot_Markers

This is an example showing standard markers available in MATLAB® plots.

Read about the plot function in the MATLAB documentation.

For more examples, go to MATLAB Plot Gallery

% Generate some data using the besselj function
x = 0:0.2:10;
y0 = besselj(0,x);
y1 = besselj(1,x);
y2 = besselj(2,x);
y3 = besselj(3,x);
y4 = besselj(4,x);
y5 = besselj(5,x);
y6 = besselj(6,x);

% Plot the points from the Bessel functions using standard marker types
figure
plot(x, y0, 'r+', x, y1, 'go', x, y2, 'b*', x, y3, 'cx', ...
    x, y4, 'ms', x, y5, 'yd', x, y6, 'kv')

Contact us