matperim
matperim(mat)
mat
2-column matrix representing the xy coordinates of a closed polygon or line segment
The length of the perimeter