If you want to go ahead with NaN's itself...use intepr2, imresize.
If you want to fill NaN's first, then use fillmissing and then interp2, imresize.
Read about interp2, imresize, fillmissing.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!