How to write correct matlab codes in solving equation?

8 visualizaciones (últimos 30 días)
Anupan Netyanun
Anupan Netyanun el 17 de Jun. de 2015
Comentada: Anupan Netyanun el 17 de Jun. de 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,

Respuesta aceptada

Mischa Kim
Mischa Kim el 17 de Jun. de 2015
Editada: Mischa Kim el 17 de Jun. de 2015
Anupan, use
syms x
solve(x+2 == 1,x)

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by