Hey Tim,

Looks like that worked well:

X = [3:15];
V = sin(X);
Xq = [4:.25:12];
ig = InterpGrid(V, BCnil, InterpLinear);
y=[ig[x - 2.0] for x in Xq];
plot(X,V,"o",Xq,y, "orange", Xq, sin(Xq), "red");
legend(["Data", "Interp", "Actual"])

<https://lh6.googleusercontent.com/-wBdB9K6sSG4/U00YUDnEtlI/AAAAAAAAHuk/TdkF6Jb8ruw/s1600/better_interp.png>

Reply via email to