[X,Y] = meshgrid(-3:.25:3);
Z = peaks(X,Y);
%定义原图形的数组
[XI,YI] = meshgrid(-3:.125:3);
%定义插值的X、Y坐标
ZI = interp2(X,Y,Z,XI,YI);
%采用双线性插值返回图形数组XI、YI、ZI(XI、YI已知)
mesh(X,Y,Z), hold, mesh(XI,YI,ZI+15)
hold off
axis([-3 3 -3 3 -5 20])
MATLAB图像处理—孙兆林编著—清华大学出版社