How can I crop a matrix with ocean boundaries?
Show older comments

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
Erin
on 30 Jan 2026
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.
Accepted Answer
More Answers (0)
Categories
Find more on Oceanography and Hydrology in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!