Nearest nodes to a given point

8 vues (au cours des 30 derniers jours)
Fadi Kahwash
Fadi Kahwash le 21 Juil 2014
Modifié(e) : Fadi Kahwash le 22 Juil 2014
Hello;
I have a set of randomly distributed nodes ( N ) in a closed domain, a point ( P ) inside this domain and an integer ( m >1 ). The number of nodes in N is sufficiently larger than m.
What is the most efficient way to find the nearest m nodes to the point P from the set N?
Thank you,,,

Réponse acceptée

Shashank Prasanna
Shashank Prasanna le 21 Juil 2014
You can perform a "m" nearest neighbor search for a specified distance metric:
Here are your choices of distance measures:
  1 commentaire
Fadi Kahwash
Fadi Kahwash le 22 Juil 2014
Modifié(e) : Fadi Kahwash le 22 Juil 2014
Thanks Shashank!! I was looking for this function but somehow I missed it.

Connectez-vous pour commenter.

Plus de réponses (1)

Chad Greene
Chad Greene le 21 Juil 2014
  1 commentaire
Fadi Kahwash
Fadi Kahwash le 22 Juil 2014
Modifié(e) : Fadi Kahwash le 22 Juil 2014
Thanks Chad!! Very useful function.

Connectez-vous pour commenter.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by