www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/PlotSingleDataSeriesExample.m
%% Plot Single Data Series % Create a stem plot of 50 data values between $-2\pi$ and $2\pi$. % Copyright 2015 The MathWorks, Inc. %% figure Y = linspace(-2*pi,2*pi,50); stem(Y) %% % Data values are plotted as stems extending from the baseline and terminating % at the data value. The length of |Y| automatically determines the position % of each stem on the _x_-axis.