Hey Stefan, thanks for the reply. That was the type of functionality I was 
hoping for, but it doesn’t quite work like we are expecting.

While the “interpolated” data does look like a sin wave, it is not even 
close to in the right place. 

See what happens if we plot the actual grid points used to çreate the igobject (
X, and V) with the interpolated values as well as the actual values of 
sin(Xq). 

X = [3:15];
V = sin(X);
Xq = [4:.25:12];
ig = InterpGrid(V, BCnil, InterpLinear);

y=[ig[x] for x in Xq];

plot(X,V,"o",Xq,y, "orange", Xq, sin(Xq), "red");

legend(["Data", "Interp", "Actual"])

<https://lh4.googleusercontent.com/-HuKpbz8rBq0/U00W4PpOr0I/AAAAAAAAHuU/QUk7TWTfI24/s1600/poor_interp.png>

Reply via email to