Info
此问题已关闭。 请重新打开它进行编辑或回答。
how to calculate distance euclidean
1 次查看(过去 30 天)
显示 更早的评论
Hi guys I just cannot figure out the math behind how does these matrices produce this
c =
1 5 6
3 1 2
0 4 5
a = {[1;5;2]}
b = {[2;6;7]}
c = pdist2(a{1},b{1},'euclidean')
0 个评论
回答(1 个)
the cyclist
2020-11-24
c(m,n) is the absolute value of the difference between the m-th element of the vector stored in a and the n-th element of the vector stored in b.
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!