MATLAB: Mask the data relating to the contour of the continents

mask continents

Does anyone have a solution to mask the data relating to the contour of the continents of a netcdf file?

Best Answer

Perhaps inpolygon will do it?