Solve an equation with two unknown variables

How i can solve this equation in matlab , z = x+y / avg
where x = 4 , y = 6 ? How we can solve if two unknown variables in matlab ?!

댓글 수: 2

Torsten
Torsten 2022년 1월 12일
Solve for what ?
John D'Errico
John D'Errico 2022년 1월 12일
편집: John D'Errico 2022년 1월 12일
Are you asking how to solve for BOTH z and avg, if only x and y are known? That is impossible. It is not MATLAB that is the problem however, but just mathematics.
In general, it is impossible to find a solution of one equation where you have two unknowns. At best, you can solve for one unknown, as a function of the other. Again, just mathematics here. Don't blame MATLAB for not giving you a way to do the mathematically impossible.

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

답변 (0개)

카테고리

질문:

2022년 1월 12일

편집:

2022년 1월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by