Pair-wise Euclidean Distance Matrix

版本 1.2.0.0 (2.6 KB) 作者: Quan Wang
Computing the distance matrix without loops
733.0 次下载
更新时间 2014/5/20

查看许可证

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).

引用格式

Quan Wang (2024). Pair-wise Euclidean Distance Matrix (https://www.mathworks.com/matlabcentral/fileexchange/45968-pair-wise-euclidean-distance-matrix), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2013b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.2.0.0

Changed the description.

1.1.0.0

Added distance matrix from X to Y.

1.0.0.0