MATLAB: How to interpolate a pressure vector to the surface

interpolation surface pressure

I am working with a pressure vector whose coordinates are between [10,1000] in hPa with 32 pressure values and it is defined between 20ºN-50ºN and 180ºW-180ºE with a resolution of 1º, but now I need to interpolate it to the surface for each latitude and longitude to have a value for the surface pressure in each grid point. How can I do it?
Thnak you so much

Best Answer

hi,
You can use the function interp2 like in the demo ( type doc interp2) :
[X,Y] = meshgrid(-3:.25:3);
Z = peaks(X,Y);
[XI,YI] = meshgrid(-3:.125:3);
ZI = interp2(X,Y,Z,XI,YI);
mesh(X,Y,Z), hold, mesh(XI,YI,ZI+15)
hold off
axis([-3 3 -3 3 -5 20])
Related Question