Stem Plot in MATLAB®

How to make stem plots in MATLAB®.


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