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

    %% Specify Additional Style Options  
% Create a stairstep plot and set the line width to 2, the marker
% symbols to diamonds, and the marker face color to cyan using |Name,Value|
% pair arguments.   

% Copyright 2015 The MathWorks, Inc.


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

figure
stairs(Y,'LineWidth',2,'Marker','d','MarkerFaceColor','c')