https://de.mathworks.com/help/matlab/ref/polyshape.ishole.html
ishole - Determine if polyshape boundary is a hole - MATLAB
This MATLAB function returns a logical vector whose elements are 1 (true) if the corresponding boundary of polyin is a hole.
is adeterminepolyshapeboundaryhole