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
_______________________________________________ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users