%% Modify Stairstep Plot After Creation
% Create a stairstep plot of two data series and return the two stair
% objects.

% Copyright 2015 The MathWorks, Inc.


X = linspace(0,1,30)';
Y = [cos(10*X), exp(X).*sin(10*X)];
h = stairs(X,Y);

%%
% Use small circle markers for the first data series. Use magenta filled
% circles for the second series. Starting in R2014b, you can use dot
% notation to set properties. If you are using an earlier release, use the
% <docid:matlab_ref.f67-432995> function instead.

h(1).Marker = 'o';
h(1).MarkerSize = 4;
h(2).Marker = 'o';
h(2).MarkerFaceColor = 'm';