Distance between point and an array.
Ältere Kommentare anzeigen
How can I find distance between a point and an n-array elements.
Antworten (1)
Walter Roberson
am 13 Okt. 2019
0 Stimmen
pdist2()
2 Kommentare
Silpa K
am 13 Okt. 2019
Walter Roberson
am 13 Okt. 2019
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))
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!