Three dimensional (3D) matrix interpolation in Matlab
I have a 3D matrix in Matlab of certain size, however I would need to interpolate it to obtain matrix of larger size. size(M) ans= 50 108 86 I need that matrix to be interpolated and finally obtain a matrix of size 100x213x140 . Any ideas of how to do it using interp3 ? Is this possible at all? I've tried Vq = interp3(M,1:100,1:213,1:140) Error using griddedInterpolant/subsref The input data has inconsistent size. Error in interp3 (line 178) Vq = F(Xq,Yq,Zq); If I use meshgrid : [X,Y,Z] = meshgrid(1:100, 1:213, 1:140); Vq =interp3(M,X,Y,Z); Matlab seems to like it, however two things happen: