Find distance between row vectors?
이전 댓글 표시
I got two row vectors of 1x10, how can I find distaces between them? It should be working like, distance between first two columns to the rest of numbers, then it would continue for 2nd column from both arrays to the rest of numbers and so on... so that at the end we will get a 10x10 result.
I can do it for two columns like this
a=rand(10,2)
distances=squareform(pdist(a));
댓글 수: 2
Jan
2017년 5월 22일
What exactly does "distance between first two columns to the rest of number" mean?
Asim Ismail
2017년 5월 22일
편집: Asim Ismail
2017년 5월 22일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!