Find distance between row vectors?
Afficher commentaires plus anciens
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 commentaires
Jan
le 22 Mai 2017
What exactly does "distance between first two columns to the rest of number" mean?
Asim Ismail
le 22 Mai 2017
Modifié(e) : Asim Ismail
le 22 Mai 2017
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!