Distance between point and an array.
Afficher commentaires plus anciens
How can I find distance between a point and an n-array elements.
Réponses (1)
Walter Roberson
le 13 Oct 2019
0 votes
pdist2()
2 commentaires
Silpa K
le 13 Oct 2019
Walter Roberson
le 13 Oct 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))
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!