%% Plot Line Using Low-Level Syntax
% Create x and y as vectors. Then call the low-level version of the line function by specifying the data as name-value pair arguments. When you call the function this way, the resulting line is black.

x = linspace(0,10);
y = sin(x);
line('XData',x,'YData',y)

% Copyright 2012 The MathWorks, Inc.