How to Invert functions with same input variables?

2 次查看(过去 30 天)
Dear Sirs, I want to invert following set of equations:
Y(i)=a(i)X1+b(i)X2+c(i)X3+d(i)X1X2+e(i)X1X3+f(i)X2X3+g(i)X1^2+h(i)X2^2+i(i)X3^2     i=[1,4]
It consists of four outputs (Y1-Y4), 3 inputs (X1-X3), and (9*4) coeff.
I intend to generate X1,X2,X3=function(Y1,Y2,Y3,Y4).i.e. Equations of X1,X2,X3. We may assume coefficients of your choice to simplify the solution. Please help me with possible guidance.
  2 个评论
Torsten
Torsten 2016-1-18
So you have 4 equations in 3 unknowns.
Use nonlinear regression to solve for X1, X2 and X3 (e.g. using lsqcurvefit).
Best wishes
Torsten.
Ajay Goyal
Ajay Goyal 2016-1-18
Sir, can you please help me with an example. As I am unable to understand your comment properly.

请先登录,再进行评论。

采纳的回答

Torsten
Torsten 2016-1-18
a=...;
b=...;
c=...;
d=...;
e=...;
f=...;
g=...;
h=...;
i=...;
y=...;
fun=@(x) a*x(1)+b*x(2)+c*x(3)+d*x(1)*x(2)+e*x(1)*x(3)+f*x(2)*x(3)+g*x(1)^2+h*x(2)^2+i*x(3)^2-y;
x0=[1 1 1];
sol=lsqnonlin(fun,x0);
Best wishes
Torsten.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Linear Least Squares 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by