<div dir="ltr"><div><div><div>Hi all,<br><br>I'm using a cubic spline to calibrate a sensor, the code in scilab is as follows. <br><br>n=10;<br>x=linspace(min(dists(:,1)), max(dists(:,1)), n);<br>[y, d] = lsq_splin(dists(:,1), dists(:,2), x);<br>
ys = interp(dists(:,1), x, y, d,'natural');<br><br><br></div>I would like to store x, y, d in an eeprom and calculate the calibrated value (basically running interp)<br></div>Could someone please tell me where I can find the implementation of interp so that I can implement it in Arduino?<br>
<br></div>Best regards,<br>Luis<br><div><div><br clear="all"></div></div></div>