Check if Polygon is Closed
Check if the first and last coordinates of a coordinate matrix are identical.
isClosed(coords)
coords
xy.coords
logical
Useful links