Create a polygon and determine its number of sides.
t = 0:0.5:2*pi; P = [cos(t)' sin(t)']; polyin = polyshape(P); plot(polyin)
N = numsides(polyin)
N = 13
polyshape, specified as a scalar, vector, matrix,
or multidimensional array.
I— Boundary index
Boundary index, specified as a scalar integer or vector of integers. Each
I corresponds to a single boundary of the