I'm trying to use interpn
function and probing even a simple 2D example I cannot reproduce the interpolation value FUN(xi,yi)
compared to the matrix grid value i.e. FUN(1,11) != 4
.
A = [13,-1,12;5,4,3;1,6,2];
x = [0,1,2];
y = [10,11,12];
xi = linspace (min (x), max (x), 30);
yi = linspace (min (y), max (y), 60);
FUN = interpn (x, y, A, xi, yi, "spline");
disp("value(1,11) = "), FUN(1, 11)