%% Plot Multiple Lines Using Matrix Data
% Plot two lines by specifying x and y as matrices. Use line to plot columns of y versus columns of x as separate lines.

x = linspace(0,10)';
y = [sin(x) cos(x)];
line(x,y)

% Copyright 2012 The MathWorks, Inc.