summaryrefslogtreecommitdiff
path: root/Tutorial3_Curve_fitting/Scilab_code/errorfunweight.sci
blob: 9326d915bd917bf51354445d1705317a777b7501 (plain)
1
2
3
4
//A function to compute error between computed data and measured data
function err = errorfunweight(x, time, measured_data, weight_matrix)
   err = weight_matrix.*(fit_function(time, x) - measured_data )
endfunction