Re: [Scilab-users] interp implementation

2014-06-10 Thread Luis Rodrigues
Thanks Antoine, I've also found this: http://doxygen.scilab.org/master/d1/d31/someinterp_8c.html Do you know what is the relation? Or which one is actually used? Best, Luis On 10 June 2014 16:06, Antoine Monmayrant wrote: > On 06/10/2014 04:57 PM, Luis Rodrigues wrote: > > Hi all, > > I'

Re: [Scilab-users] interp implementation

2014-06-10 Thread Antoine Monmayrant
On 06/10/2014 04:57 PM, Luis Rodrigues wrote: Hi all, I'm using a cubic spline to calibrate a sensor, the code in scilab is as follows. n=10; x=linspace(min(dists(:,1)), max(dists(:,1)), n); [y, d] = lsq_splin(dists(:,1), dists(:,2), x); ys = interp(dists(:,1), x, y, d,'natural'); I would l

[Scilab-users] interp implementation

2014-06-10 Thread Luis Rodrigues
Hi all, I'm using a cubic spline to calibrate a sensor, the code in scilab is as follows. n=10; x=linspace(min(dists(:,1)), max(dists(:,1)), n); [y, d] = lsq_splin(dists(:,1), dists(:,2), x); ys = interp(dists(:,1), x, y, d,'natural'); I would like to store x, y, d in an eeprom and calculate th