www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SpecifyLineStyleColorAndMarkerExample.m
%% Specify Line Style, Color, and Marker % Plot three sine curves with a small phase shift between each line. Use a % green line with no markers for the first sine curve. Use a blue dashed % line with circle markers for the second sine curve. Use only cyan star % markers for the third sine curve. % Copyright 2015 The MathWorks, Inc. x = 0:pi/10:2*pi; y1 = sin(x); y2 = sin(x-0.25); y3 = sin(x-0.5); figure plot(x,y1,'g',x,y2,'b--o',x,y3,'c*')