pair wise distance matric

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.

 Risposta accettata

Friedrich
Friedrich il 14 Lug 2014
Hi,
you can use squareform:
X = randn(10, 2);
D = squareform(pdist(X));

Più risposte (0)

Categorie

Scopri di più su Statistics and Machine Learning Toolbox in Centro assistenza e File Exchange

Richiesto:

il 14 Lug 2014

Risposto:

il 14 Lug 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by