Distance between point and an array.
3 ビュー (過去 30 日間)
古いコメントを表示
How can I find distance between a point and an n-array elements.
0 件のコメント
回答 (1 件)
Walter Roberson
2019 年 10 月 13 日
pdist2()
2 件のコメント
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))
参考
カテゴリ
Help Center および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!