MATLAB: Re-grid/ interpolate data

interpolationre-grid

I have several matrices of lat-lon-time data that I would like to re-grid. These include:
A=96x96x12
B=96x96x12
C=64x128x12
D=64x128x12
E=96x192x12
F=96x192x12
I would like to regrid or interpolate the lon/lat variables to, 64×128, without changing the time variables in order to perform some statistics on them. Can Anyone help me with this?
Thank you!

Best Answer

Consider this data: C=64x128x12
iwant = zeros(96,96,12) ;
for i = 1:12
iwant(:,:,i) = imresize(C(:,:,i),[96,96]) ;
end
YOu may also use interp2.