Help needed! 3 Simultaneous Equations, 2 Variables

1 回表示 (過去 30 日間)
sy
sy 2012 年 4 月 22 日
コメント済み: David 2013 年 10 月 21 日
I have 3 equations with two variables (x,y) to find. and the equations contain (x^2,y^2,x,y,xy)
can matlab solve this type of equation?
the matlab code that i used:
[x,y] = solve('2*(x^2)+y^2+0.1*x+0.41','0.4*(x^2)-0.11*(y^2)+3*x-0.1*y+0.34*x*y+0.16','0.3*(x^2)+0.4*(y^2)-0.5*y-0.8');
but it failed and the warnings i get are:
Warning: 3 equations in 2 variables. Warning: Explicit solution could not be found.
anyone knows if there is other solution to find the x and y? Thanks. I'm new to MATLAB and hope someone will point out the error.
  1 件のコメント
David
David 2013 年 10 月 21 日
Well I think your problem is that your system is over determined. That is there are too many constraints on the system. No values of x and y will satisfy all three equations unless some kind of miracle happens.
Try just using two equations and I bet you will find that a solution is returned.

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2012 年 4 月 22 日
Those three equations are not consistent in two variables.
If you solve() the first two as a pair, and then solve() the first and third, you can see that the answers are quite different.
What kind of answer were you hoping for?
  1 件のコメント
sy
sy 2012 年 4 月 22 日
編集済み: Walter Roberson 2012 年 7 月 31 日
hi Walter,
I simply put some constants as the coefficients just to illustrate what type equations that I have.
This is the equation that i actually want to solve:
(4*(s^2)-4*(del1^2))*(x^2)-4*(del1^2)*(y^2)+(4*s*(del1^2)-4*(s^3))*x+(del1^4)+s^4-4*(d^2)*(del1^2)-2*(s^2)*(del1^2);
and two other equation, s,d,del1 are constants that are dependent on the condition.
I derived the equations myself (hope they are not wrong) to find the position of a beacon signal source relative to four receivers. del1 is the difference between distance travelled by signal to reach receiver 1 and 4. x, and y are the coordinate (that i wish to find from the equations)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by