Distance between point and an array.
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How can I find distance between a point and an n-array elements.
0 commentaires
Réponses (1)
Walter Roberson
le 13 Oct 2019
pdist2()
2 commentaires
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))
Voir également
Catégories
En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!