How to check if a pair of longitude and latitude is within an irregular circle?

I have an irregular circle with know boundary values (longitude and latitude). Imagine it is the boundary of Mediterranean Sea.
After some interpolation work, I want to cut off any interpolated values that are outside this circle. I am thinking to do this by checking each of the interpolated values. My question is how do I check if a data set is within this circle or not?
Thanks.

 Accepted Answer

You could try using interpm from the Mapping Toolbox along with inpolygon

More Answers (0)

Asked:

on 10 Jan 2014

Commented:

on 10 Jan 2014

Community Treasure Hunt

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

Start Hunting!