I have the shapefile of the study region. I want to know how to use inpolygon function in order to ignore all values that out-of-boundary.
NOW: (so many data out of country border (red line)
I WANT SOMETHING LIKE THIS PICTURE BELOW:
surf(loni, lati, Mean_precip(:,:,:).'); view(2)
Any help is appreciated