%% Matrix Input  
% Create a 3-D stem plot of sine and cosine values between $-\pi/2$ and
% $\pi/2$
% with a matrix input.   

% Copyright 2015 The MathWorks, Inc.


%%  
figure
X = linspace(-pi/2,pi/2,40);
Z = [sin(X); cos(X)];
stem3(Z)    

%%
% |stem3| plots each row of |Z| against the same _y_ value at equally space
% _x_ values.   

