Check for 3D line plot to form a closed loop - randomly ordered points

Hi, I am using plot3 command to form a closed loop of points for a code. How can i determine automatically if the points form a closed loop without manually visualizing it. Attached is an example of the points which form the closed loop. I want to write a piece of code which can automatically determine if the points form a closed loop or not. The points are plotted in random order.

1 Comment

Duplicate:
https://www.mathworks.com/matlabcentral/answers/321341-check-for-3d-line-plot-to-form-a-closed-loop

Answers (0)

This question is closed.

Asked:

on 22 Jan 2017

Closed:

on 22 Jan 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!