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 Center および File ExchangePartial Differential Equation Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by