how to caculate distance?
6 次查看(过去 30 天)
显示 更早的评论
o node1
node 2 o o node 3
if the above figure three nodes are present. how to calculate distance between these nodes.
0 个评论
回答(1 个)
Yongjian Feng
2021-7-5
Can you figure out the coordinates of those three dots? If so that the distance is defined as d=sqrt((x1-x2)^2+(y1-y2)^2)). Here (x1, y1) and (x2, y2) are the coordinates of the dots.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graph and Network Algorithms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!