%% Plot Multiple Data Series  
% Plot two data series using a two-column matrix.   

% Copyright 2015 The MathWorks, Inc.


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

%%
% Each column of |Y| is plotted as a separate series, and entries in the
% same row of |Y| are plotted against the same _x_ value. The number of
% rows in |Y| automatically generates the position of each stem on the _x_-axis.
%    

