www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SpecifytheLineStyleMarkerSymbolandColorExample.m

    %% Specify Line Style, Marker Symbol and Color  
% Create a stairstep plot and set the line style to a dot-dashed line, the
% marker symbol to circles, and the color to red.   

% Copyright 2015 The MathWorks, Inc.


%%  
X = linspace(0,4*pi,20);
Y = sin(X);

figure
stairs(Y, '-.or')