Using pdist with two matrix's
이전 댓글 표시
Hi,
So if I have one 102x2 matrix of x,y coordinates, and another 102x2 matrix of x,y coordinates, can pdist be used to compare all the rows in matrix 1 with the rows in matrix 2? As in for matrix one row 1, the x,y coordinates are compared to matrix 2 row 1 x,y coordinates; row 2 mat1 is compared to row 2 mat2 etc to find the distance between them, for all 102 rows?
I want to find their distances but I can't quite understand the help page on pdist, can it be used for this or is there another function I should look at?
Many thanks!
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!