How to calculate euclidean distance to a loaded dataset.?
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Sir, I have the data of 401*22double and we have to find the euclidean distance for that dataset.my dataset consists of 401 images with 22 features using pdist2 function.
5 Commenti
Jan
il 27 Apr 2017
There is no need for the 2 loops, because the body of the loop does not depend on x and y.
D = pdist2(sam',data');
This looks like it could do what you want. So what is the problem?
Risposte (0)
Vedere anche
Categorie
Scopri di più su Statistics and Machine Learning Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!