How to write correct matlab codes in solving equation?

8 Ansichten (letzte 30 Tage)
Anupan Netyanun
Anupan Netyanun am 17 Jun. 2015
Kommentiert: Anupan Netyanun am 17 Jun. 2015
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,

Akzeptierte Antwort

Mischa Kim
Mischa Kim am 17 Jun. 2015
Bearbeitet: Mischa Kim am 17 Jun. 2015
Anupan, use
syms x
solve(x+2 == 1,x)

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by