Extract points which are inside a polygon

4 views (last 30 days)
Hi,
I want to select all the points (latitude,longitude) which are inside the rectangle. I can create a polygon which includes all the points, but I can't find the way to extract them. Can you tell me a simple way to do it?
Thanks,
David

Accepted Answer

Star Strider
Star Strider on 6 Mar 2021
The inpolygon function comes quickly to mind.

More Answers (0)

Categories

Find more on Elementary Polygons in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!