Watch this Author's files
Sorry, I see the point - you want to close the circle. Duh.
Broken; produces repeated coordinate at the start and end position, so the centroid of the points is not the centre of the circle.
Contact us at files@mathworks.com