how to caculate distance?
조회 수: 1 (최근 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!