%% Column Vector Input
% Create a 3-D stem plot of cosine values between -\pi/2 and \pi/2 with a column vector input.

figure
X = linspace(-pi/2,pi/2,40)';
Z = cos(X);
stem3(Z)

% stem3 plots elements of Z against the same x value at equally space y values.
% Copyright 2015 The MathWorks, Inc.