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 Kommentar

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

Antworten (0)

Diese Frage ist geschlossen.

Gefragt:

am 22 Jan. 2017

Geschlossen:

am 22 Jan. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by