MATLAB: What is properly method to optimization of four parameter to be one value

mathematicsoptimizationpolynomial equation

Hello all. I have 4 parameters for 4 equations that I just want to optimize those parameter to one value to be used for these 4 equation. Is there method for this task? ex. Y1=aX1; Y2=bX2; Y3=cX3; Y4=dX4 and want to optimize these a,b,c,d to be A for this equation.

Best Answer

So you have four data points (X1,Y1), (X2,Y2), (X3,Y3), (X4,Y4) and you want to find the "best" A such that
[Y1 Y2 Y3 Y4] = A*[X1 X2 X3 X4]
?
If this is the case,
A = (X1*Y1+X2*Y2+X3*Y3+X4*Y4)/(X1^2+X2^2+X3^2+X4^2)
Best wishes
Torsten.