Lets suppoese i have the points as shown by B. For example, P1(1,1,2 ), P2(1,2,3 ) etc as shown by B. I want to measure the shortest distance among these points.
x = B(:,1), y =B(:,2) and z = B(:,3).
Thanks in advance for support from community members. Regards!
B =
1 1 3
1 2 3
2 3 1
2 3 2
3 1 1
3 3 1
3 3 2
5 Comments
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/627403-how-to-measure-the-shortest-distance-among-different-points-using-matlab#comment_1089608
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/627403-how-to-measure-the-shortest-distance-among-different-points-using-matlab#comment_1089608
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/627403-how-to-measure-the-shortest-distance-among-different-points-using-matlab#comment_1089653
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/627403-how-to-measure-the-shortest-distance-among-different-points-using-matlab#comment_1089653
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/627403-how-to-measure-the-shortest-distance-among-different-points-using-matlab#comment_1091768
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/627403-how-to-measure-the-shortest-distance-among-different-points-using-matlab#comment_1091768
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/627403-how-to-measure-the-shortest-distance-among-different-points-using-matlab#comment_1091783
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/627403-how-to-measure-the-shortest-distance-among-different-points-using-matlab#comment_1091783
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/627403-how-to-measure-the-shortest-distance-among-different-points-using-matlab#comment_1091923
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/627403-how-to-measure-the-shortest-distance-among-different-points-using-matlab#comment_1091923
Sign in to comment.