How to write correct matlab codes in solving equation?

조회 수: 8 (최근 30일)
Anupan Netyanun
Anupan Netyanun 2015년 6월 17일
댓글: Anupan Netyanun 2015년 6월 17일
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개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by