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.
引用格式
R. Bunschoten (2026). distance.m (https://ww2.mathworks.cn/matlabcentral/fileexchange/71-distance-m), MATLAB Central File Exchange. 检索时间: .
| 版本 | 已发布 | 发行说明 | Action |
|---|---|---|---|
| 1.0.0.0 |
