%% Scale Polygon
% Create a polygon and scale it by a factor of 2.

polyin = polyshape([0 0 1 1],[1 0 0 1]);
poly1 = scale(polyin,2);

%
% Scale polyin by a factor of 0.5 with respect to the point (1,1). Plot all three polygons.

poly2 = scale(polyin,0.5,[1 1]);
plot(polyin)
hold on
plot(poly1)
plot(poly2)

% Copyright 2012 The MathWorks, Inc.