MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > interp3 interpolation 

Hello, I've two layers at (x,y, z = 1) and (x,y,z = 2) and I'm trying to interpolate to have two additional layers in between these two layers. The two additional layers should have values which is an interpolation (spline or cubic) of the original two layers. I'm working with interp3 but getting the error below: 
Not check on Matlab, but I'm pretty sure the inputs XI, YI, ZI should have the same size, because they are usually scattered data. It is not the case in your code 
BTW, INTERP3 is overkill, INTERP1 is enough 
Thanks for the reply. The MATLAB doc says 
"Aditya Gupta" <adityargupta@gmail.com> wrote in message <hfeena$fhb$1@fred.mathworks.com>... 
Try changing the order of the inputs to interp3 from... 
In fact the order of the XI,YI,ZI needs to be changed as well. If you change the line ... 
Very nice Adam, thank you. 
"Adam Aitkenhead" <adamaitkenheadNOSPAM@NOSPAMhotmail.com> wrote in message <hfoa5q$5or$1@fred.mathworks.com>... 
Thanks for the clarification Matt. 
it is an error by omission, since in the MESHGRID doc one finds this illuminating bit :) 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.