MATLAB Answers

How to solve 3 functions in 4 variables

조회 수: 2(최근 30일)
Mohamed Mahmoud
Mohamed Mahmoud 24 Oct 2020
답변: John D'Errico 25 Oct 2020
Tan = 2 - c - a
Man = b + c - 1
Lan = a - 3*b - c + d - 1
The answer
a=d
b=d-1
c= 2-d

  댓글 수: 0

댓글을 달려면 로그인하십시오.

답변(2개)

madhan ravi
madhan ravi 24 Oct 2020
Use solve() to get the answer what you show

  댓글 수: 2

Mohamed Mahmoud
Mohamed Mahmoud 25 Oct 2020
Error is Empty sym: 0-by-1
madhan ravi
madhan ravi 25 Oct 2020
Show what you have tried.

댓글을 달려면 로그인하십시오.


John D'Errico
John D'Errico 25 Oct 2020
What you show is NOT the answer. It is AN answer.
3 equations with 4 variables is called an underdetermined problem. There is effectively no solution. If you are willing to parameterize the problem, leaving one of the variables an unknown, then you can solve 3 equations in 3 variables, with the answer as a function of the 4th variable.
That seems to be what you are asking for. And the solution is simple. Just use solve. Pick the three variables you wish to solve the problem for, and the last variable will be left as a parameter.

  댓글 수: 0

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by