image thumbnail
from Interpolation for missing data by Prakash Manandhar
Interpolates using nearest neighbor, bilinear or bicubic formula for missing data points

nninter(x, y, z, x0, y0)
function z0 = nninter(x, y, z, x0, y0)
[xn, yn, zn] = findnearest(x, y, z, x0, y0, 1);
z0 = zn;

Contact us at files@mathworks.com