This example shows how to make a line graph and display markers at particular data points.
y as 100-element vectors.
x = linspace(0,2*pi,100); y = sin(x);
y. Display markers every
data points by superimposing a second graph of just markers over the line graph.
xmarkers = 0:pi/2:2*pi; % place markers at these x-values ymarkers = sin(xmarkers); figure plot(x,y,'b',xmarkers,ymarkers,'b*')