www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/PlotMultipleDataSeriesatSpecifiedxvalues1Example.m
%% Plot Multiple Data Series at Specified x values % Plot 50 data values of sine and cosine evaluated between 0 and $2\pi$ and % specify the set of _x_ values for the stem plot. % Copyright 2015 The MathWorks, Inc. %% figure X = linspace(0,2*pi,50)'; Y = [cos(X), 0.5*sin(X)]; stem(X,Y) %% % The vector input determines the _x_-axis positions for both data series.