%% Modify Plot
% Create a rectangular polygon. Plot the rectangle, specifying the color and transparency factor.

pgon = polyshape([0 0 2 2],[2 0 0 2]);
plot(pgon,'FaceColor','red','FaceAlpha',0.1)

%
% You can also change the appearance of the plot by assigning property values to the graphics object.

h = plot(pgon)
h.LineStyle = '--';
h.EdgeColor = 'red';

% Copyright 2012 The MathWorks, Inc.