How can I make a function of 2 variables and given a 2D array, it would return an interpolated value?
I have N x M array A. I need to inter
N x M
A
Use the spline() command like this:
spline()
% A contains N rows and 2 columns pp = spline(A(:,1), A(:,2)); ppval(pp,3.44) ans = 0.4454