Also Tim,
I am not sure I understand what you mean by You could also scale the values if they aren’t usually spaced by 1. This example now fails again: X = [3:0.5:15]; V = sin(X); Xq = [4:.25:12]; ig = InterpGrid(V, BCnil, InterpLinear); y = ig[Xq - 2.0] plot(X,V,"o",Xq,y, "orange", Xq, sin(Xq), "red"); legend(["Data", "Interp", "Actual"]) <https://lh6.googleusercontent.com/-fjQoed-ZkOY/U00aAgs61EI/AAAAAAAAHuw/SzozpusNE38/s1600/bad_interp.png>
