%% Simplified Polygons
% Create a row vector of two polygons: one that is ill-defined, and one that is well-defined. Use the issimplified function to verify their status.

poly1 = polyshape(rand(20,2),'Simplify',false);
poly2 = polyshape(rand(20,2));
polyin = [poly1 poly2];
TF = issimplified(polyin)

% Copyright 2012 The MathWorks, Inc.