%% Simple Rectangle
% Plot a rectangular polygon.

pgon = polyshape([0 0 2 2],[2 0 0 2]);
plot(pgon)

% Copyright 2012 The MathWorks, Inc.