How to write correct matlab codes in solving equation?

7 ビュー (過去 30 日間)
Anupan Netyanun
Anupan Netyanun 2015 年 6 月 17 日
コメント済み: Anupan Netyanun 2015 年 6 月 17 日
I tried to used "solve" to solve the equation but got error. Here is what I have tried.
syms x solve(x+2=1,x)
Please help me correct the codes. I would like to work on harder equations and loops commands. Thanks in advance,

採用された回答

Mischa Kim
Mischa Kim 2015 年 6 月 17 日
編集済み: Mischa Kim 2015 年 6 月 17 日
Anupan, use
syms x
solve(x+2 == 1,x)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by