How to write correct matlab codes in solving equation?

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개)

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2015년 6월 17일

댓글:

2015년 6월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by