%% Change Line Properties After Creation
% First, draw a line from the point (3,15) to (2,12) and return the Line object. Then change the line to a green, dashed line. Use dot notation to set properties.

x = [3 2];
y = [15 12];
pl = line(x,y);

%

pl.Color = 'green';
pl.LineStyle = '--';

% Copyright 2012 The MathWorks, Inc.