Calculates point position in 2D polygon: inside, outside, is a vertex and on the edge.
Boguslaw Obara (2020). Find point position in 2D polygon (https://www.mathworks.com/matlabcentral/fileexchange/21621-find-point-position-in-2d-polygon), MATLAB Central File Exchange. Retrieved .
Thanks guys.... I was not aware of matlab INPOLYGON:)
Already in Matlab: INPOLYGON, which is vectorized for multiple points and faster ...