[Scilab-users] interp implementation

Luis Rodrigues lfrodrigues at gmail.com
Tue Jun 10 16:57:35 CEST 2014


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 the calibrated
value (basically running interp)
Could someone please tell me where I can find the implementation of interp
so that I can implement it in Arduino?

Best regards,
Luis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140610/19ff79ef/attachment.htm>


More information about the users mailing list