Pair-wise Euclidean Distance Matrix
Versione 1.2.0.0 (2,62 KB) da
Quan Wang
Computing the distance matrix without loops
This is a very simple function to compute pair-wise Euclidean distances within a vector set, from between two vector sets. Although simple, it is very useful. Using loops will be too slow.
D=distanceMatrix(X), where X is N*d data, and D is N*N distance matrix.
or D=distanceMatrix2(X,Y).
Cita come
Quan Wang (2025). Pair-wise Euclidean Distance Matrix (https://www.mathworks.com/matlabcentral/fileexchange/45968-pair-wise-euclidean-distance-matrix), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2013b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Statistics and Machine Learning Toolbox in Help Center e MATLAB Answers
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.