How to write correct matlab codes in solving equation?

8 vues (au cours des 30 derniers jours)
Anupan Netyanun
Anupan Netyanun le 17 Juin 2015
Commenté : Anupan Netyanun le 17 Juin 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,

Réponse acceptée

Mischa Kim
Mischa Kim le 17 Juin 2015
Modifié(e) : Mischa Kim le 17 Juin 2015
Anupan, use
syms x
solve(x+2 == 1,x)

Plus de réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by