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 日

0 投票

Anupan, use
syms x
solve(x+2 == 1,x)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Programming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by