How can I crop a matrix with ocean boundaries?

This is figure that plot with satellite data using my research.
It is 8640*4320 matrix.
I want to crop the matrix with ocean boundaries, but i don't know how i can do this.
I already cropped matrix like upper image, but it's boundaries are not fittable to my research.
How can i do this like lower image?
I hope I can get answer ASAP.
have a nice day.

1 Comment

Please follow these rules when u ask a question:
  • Be descriptive, specific, and concise. Example: How can I use a plot to change the line color of a graph?
  • Focus on a single issue, only.
  • In the title, include error numbers, if applicable.
  • List steps you already tried.
  • Include sufficient code so others can understand the problem.
  • Add one- or two-word tags that describe your question. Use tags that are brief and easily understood.
  • Indicate which add-on products (toolboxes or blocksets) are relevant, if applicable.

Sign in to comment.

 Accepted Answer

You'll have to do that manually with coordinates known in advance rather than have some algortihm figure it out, because for example where you split the South Atlantic and the Indian Ocean is not unique - there are several other columns that could just as well be the division line.

More Answers (0)

Categories

Find more on Oceanography and Hydrology in Help Center and File Exchange

Asked:

on 3 Sep 2014

Commented:

on 30 Jan 2026

Community Treasure Hunt

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

Start Hunting!