MATLAB: HOW TO FIT A 4D DATA

4d fittingexperimental data

Hi all,
I have some set of experimental data x1,x2 and x3 (around 500) and for each set the corresponding value of the function f(x1,x2,x3)=Y.
My equation will be Y=a*x1+b*x2+c*x3
I want to calculate the values for a,b and c that better fit my data.
How can i do?
thankyou

Best Answer

See my Answer here and Comment here. The same approach applies to your problem.