www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/PlotMultipleDataSeriesatUniqueSetsofxValuesExample.m
%% Plot Multiple Data Series at Unique Sets of x-Values % Create a stairstep plot of two sine waves evaluated at different values. % Specify a unique set of _x_-values for plotting each data series. % Copyright 2015 The MathWorks, Inc. %% x1 = linspace(0,2*pi)'; x2 = linspace(0,pi)'; X = [x1,x2]; Y = [sin(5*x1),exp(x2).*sin(5*x2)]; figure stairs(X,Y) %% % Each column of |X| is plotted against the corresponding column of |Y|.