polyshape is well-defined
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));
Warning: Polyshape has duplicate vertices, intersections, or other inconsistencies that may produce inaccurate or unexpected results. Input data has been modified to create a well-defined polyshape.
polyin = [poly1 poly2]; TF = issimplified(polyin)
TF = 1x2 logical array 0 1
polyin — Input
scalar | vector | matrix | multidimensional array
polyshape, specified as a scalar, vector, matrix,
or multidimensional array.
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Usage notes and limitations:
Dynamic memory allocation must be enabled for code generation.
Name-value pair must be compile time constant.
Introduced in R2017b