Find distance between row vectors?
Mostrar comentarios más antiguos
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 comentarios
Jan
el 22 de Mayo de 2017
What exactly does "distance between first two columns to the rest of number" mean?
Asim Ismail
el 22 de Mayo de 2017
Editada: Asim Ismail
el 22 de Mayo de 2017
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Multidimensional Arrays en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!