summaryrefslogtreecommitdiff
path: root/Tutorial03-Curve_fitting/Scilab_code/fit_function.sci
blob: 49240e8464433a1e80a38193f3c7c352755fd17c (plain)
1
2
3
4
5
6
//The function to be fitted in the measured data
function y = fit_function(t, x)
   a = x(1);
   b = x(2);
   y  = a./(1+b.*t.*t)
endfunction