Distance between point and an array.
Mostrar comentarios más antiguos
How can I find distance between a point and an n-array elements.
Respuestas (1)
Walter Roberson
el 13 de Oct. de 2019
0 votos
pdist2()
2 comentarios
Silpa K
el 13 de Oct. de 2019
Walter Roberson
el 13 de Oct. de 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))
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!