%% Modify Rectangle After Creation
% Add a rectangle to the current axes and return the rectangle object, r.

r = rectangle('Position',[0 0 1 1]')

%
% Modify the rectangle after creation using r. Change the fill color, outline color, and outline width.

r.FaceColor = [0 .5 .5];
r.EdgeColor = 'b';
r.LineWidth = 3;

% Copyright 2015 The MathWorks, Inc.