Distance between point and an array.
이전 댓글 표시
How can I find distance between a point and an n-array elements.
답변 (1개)
Walter Roberson
2019년 10월 13일
0 개 추천
pdist2()
댓글 수: 2
Silpa K
2019년 10월 13일
Walter Roberson
2019년 10월 13일
pdist2(point, array.')
However, for the simple 1D case, perhaps you want
abs(point - array)
and my guess is you want
min(abs(point - array))
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!