pair wise distance matric
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mahdieh
am 14 Jul. 2014
Beantwortet: Friedrich
am 14 Jul. 2014
Pdist give me n (n-1)/2 distances .I want know how i can have all of distances even with repeat means n (n-1) distances.
0 Kommentare
Akzeptierte Antwort
Friedrich
am 14 Jul. 2014
Hi,
you can use squareform:
X = randn(10, 2);
D = squareform(pdist(X));
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!