MATLAB: Distance between two points help Hello, given two double matrices of size (606×3), where each column indicates the XYZ coordinates of a point. How can I calculate the distance between the two points ?? Best Answer dist = sqrt((A(:,1)-B(:,1)).^2 + (A(:,2)-B(:,2)).^2 + (A(:,3)-B(:,3)).^2); Related SolutionsMATLAB: How to calculate the shortest distance between points and a line You can use the point_to_line_distance function. MATLAB: How to find distance between 2 points of a image Use the imdistline function. Related QuestionFinding Distance Between Each Point (not the diagonal distance)Calculating the distance between points using vectorization.Calculating distance between two points from a matrix in 2d and 3d
Best Answer