How to cluster points inside a contour map?

3 visualizaciones (últimos 30 días)
Shlomit Sharoni
Shlomit Sharoni el 19 de Jul. de 2017
Comentada: KSSV el 19 de Jul. de 2017
I have a global map of Earth with contour lines plus, I have coordinates of measurements. What is the best way to cluster the points inside and outside of the contours? In the image attached, as you can see the clustering is not so good. Thanks

Respuestas (1)

KSSV
KSSV el 19 de Jul. de 2017
doc kmeans
  2 comentarios
Shlomit Sharoni
Shlomit Sharoni el 19 de Jul. de 2017
Thank you but i'm not sure kmeans will work. if I understood correctly kmeans cluster the points by their distances from each other which is not the case here. I would like to cluster them according to a specific boundary.
KSSV
KSSV el 19 de Jul. de 2017
Then it is an easy job....have a look inpolygon. Provide the boundaries of the closed region and the points...this function will give you indices of points lying in and on the closed region.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by