www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/DisplayMarkersAtSpecificDataPointsExample.m
%% Display Markers at Specific Data Points % Create a line plot and display markers at every fifth data point by % specifying a marker symbol and setting the |MarkerIndices| property as a % name-value pair. x = linspace(0,10); y = sin(x); plot(x,y,'-o','MarkerIndices',1:5:length(y))