Is it possible to solve the equation in matlab without rearranging it??

조회 수: 9 (최근 30일)
R7 DR
R7 DR 2015년 1월 30일
댓글: R7 DR 2015년 1월 30일
Equation: 4X+2X-Y=2X+2, find the value of Y at X=2.
We can solve the equation after rearranging it as, Y=4X-2;
Is it possible to solve the equation in matlab without rearranging??

채택된 답변

Niels
Niels 2015년 1월 30일
Although I don't see why you would even bother to do it without rearranging, it is easily possible if you have the symbolic toolbox:
y = sym('y');
x = 2;
y = solve(4*x+2*x-y == 2*x+2, y);
  댓글 수: 1
R7 DR
R7 DR 2015년 1월 30일
Thanks for your answer. Acctually I have a very big equation to solve, so I thought of solving it without rearranging.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Partial Differential Equation Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by