You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
A fully vectorized function that computes the Euclidean distance matrix between two sets of vectors.
The output is the same as MathWorks' (Neural Network Toolbox) 'dist' funtion (ie, d = dist(A',B), where A is a (DxM) matrix and B a (DxN) matrix, returns the same as my d = distance(A,B) ), but this function executes much faster.
Cite As
R. Bunschoten (2026). distance.m (https://ch.mathworks.com/matlabcentral/fileexchange/71-distance-m), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: IPDM: Inter-Point Distance Matrix, Efficient K-Nearest Neighbor Search using JIT
General Information
- Version 1.0.0.0 (814 Bytes)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
