Pair-wise Euclidean Distance Matrix
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).
Citation pour cette source
Quan Wang (2024). Pair-wise Euclidean Distance Matrix (https://www.mathworks.com/matlabcentral/fileexchange/45968-pair-wise-euclidean-distance-matrix), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
DistanceMatrix_v1.1/
Version | Publié le | Notes de version | |
---|---|---|---|
1.2.0.0 | Changed the description. |
||
1.1.0.0 | Added distance matrix from X to Y. |
||
1.0.0.0 |