Clear Filters
Clear Filters

Subtraction between two imagesc plots with different resolutions

1 view (last 30 days)
Hi,
I have two similar world plots with different resolution, one of them is for example: imagesc(lambda-180,phi,EWT(:,:,1)), and the other is imagesc(Lon,Lat,Pre(:,:,1));
wich their values are as follow:
lambda = 1*360;
phi = 180*1;
EWT = 180*360*12;
Lon = 720*1;
Lat = 360*1;
Pre = 360*720*12;
i want to subtrace EWT from Pre and i dont know how to equalize them for this action,
i apperaciate if you could answer me please.
  2 Comments
Image Analyst
Image Analyst on 3 Oct 2020
You can't subtract matrices unless they're the same size. Do you want to make them the same size with imresize() or interp2()? Or do you have some other process you'd like to use?
Benyamin Nemati
Benyamin Nemati on 3 Oct 2020
Edited: Benyamin Nemati on 3 Oct 2020
I would like to interpolate one of the above plots but I don't know how to do that in correct way. For your consideration, one of them is the world meteorological data with 1° resolution and the other has 0.5° resolution.

Sign in to comment.

Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!