www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SpecifyLineStyleExample.m
%% Specify Line Style % Plot three sine curves with a small phase shift between each line. Use % the default line style for the first line. Specify a dashed line style % for the second line and a dotted line style for the third line. % Copyright 2015 The MathWorks, Inc. x = 0:pi/100:2*pi; y1 = sin(x); y2 = sin(x-0.25); y3 = sin(x-0.5); figure plot(x,y1,x,y2,'--',x,y3,':') %% % MATLAB(R) cycles the line color through the default color order.