How to calculate the distance between matrixes
1 次查看(过去 30 天)
显示 更早的评论
Is it possible to determine the Euclidean distance between two matrices with different lengths?
%//// Ex:
I1 = [4, 3, 5, 2, 4]
I2 = [4, 3, 6]
The length of I1 is 5, but the length of I2 is 3. So is it possible to calculate the Euclidean distance??
Thank you
1 个评论
Andrew Newell
2017-4-24
A Euclidean distance is between two points in the same space. Here we have points in a five-dimensional space and a three-dimensional space. To make the idea of Euclidean distance meaningful, you'd have to do something like add two zeros to I2.
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!