%% Plot Multiple Data Series at Specified x-Values  
% Create a stairstep plot of two cosine waves evaluated at equally spaced
% values between 0 and $4\pi$. Specify the set of _x_-values for the plot.   

% Copyright 2015 The MathWorks, Inc.


%%  
X = linspace(0,4*pi,50)';
Y = [0.5*cos(X), 2*cos(X)];

figure
stairs(X,Y)    

%%
% The first vector input, |X|, determines the _x_-axis positions for both
% data series.   

