%% Add Polygon Boundary
% Create a rectangle, and then create a second polygon made up of the rectangle plus a triangle.
%

polyin = polyshape([0 0 1 1],[0 0.5 0.5 0])
plot(polyin)
polyout = addboundary(polyin,[2 3 2.5],[2 2 3])
plot(polyout)

% Copyright 2012 The MathWorks, Inc.