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!