%% 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.

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.
% Copyright 2015 The MathWorks, Inc.