www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/PlacingMarkersAtEveryTenthDataPointExample.m
%% Placing Markers at Every Tenth Data Point % This example shows how 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. x1 = 0:pi/100:2*pi; x2 = 0:pi/10:2*pi; plot(x1,sin(x1),'r:',x2,sin(x2),'r+')