I have a large matrix and I want to interpolate between the columns, i.e. interp2 does exactly what i want EXCEPT i don't want it to interp between the rows.
there must be an easy way to do this!!
thanks!
Best Answer
I think you're looking for interp1, which can be used to interpolate for a number of functions(columns in a matrix) in one pass. To see an example of this, execute the following:
‘Spline interpolation using not-a-knot end conditions. The interpolated value at a query point is based on a cubic interpolation of the values at neighboring grid points in each respective dimension.’
It does not appear to be the same as 'cubic'. According to the documentation, 'cubic' is currently the same as 'pchip'.
Best Answer