Distance between point and an array.
Mostra commenti meno recenti
How can I find distance between a point and an n-array elements.
Risposte (1)
Walter Roberson
il 13 Ott 2019
0 voti
pdist2()
2 Commenti
Silpa K
il 13 Ott 2019
Walter Roberson
il 13 Ott 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))
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!