How to find all (latitude,longitude) that lie inside a rectangle with known x-y coordinates on my plot?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Aditya Wahi
el 10 de Jul. de 2017
Editada: Aditya Wahi
el 21 de Jul. de 2017
I have a file that contains the latitude and longitude, of several points over a region.
How do I iterate through my lat-long file, to return all the (lat,lon) that lies within some x-y limit on my plot? The problem being that the coordinates are floating points.
Any help is highly appreciated!
0 comentarios
Respuesta aceptada
KSSV
el 10 de Jul. de 2017
doc inpolygon .
inpolygon gives you indices of points(x,y) that lie inside the boundary points/ closed region (xb,yb). With these indices, you can select your points which lie inside the given closed region.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!