solve returns variable name instead of value
이전 댓글 표시
When running the solve() command, no matter how complex or simple, it will return the variable name instead of its value.

채택된 답변
추가 답변 (1개)
This is exactly as documented.
syms x
result=solve(4 == 2+x,x)
res=double(result) %convert symbolic to double
댓글 수: 7
Frederik Jensen
2021년 5월 17일
Frederik Jensen
2021년 5월 17일
Rik
2021년 5월 17일
Which release are you using?
Star Strider
2021년 5월 17일
What MATLAB version/release are you using? I believe the last Maple engine for the Symbolic Math Toolbox was 2009. Alternatively, if you have Maple installed on your computer, there could be conflicts with the MATLAB Symbolic Math Toolbox.
Frederik Jensen
2021년 5월 17일
Rik
2021년 5월 18일
I don't have a license for the symbolic toolbox or Maple, so I can't reproduce your system. I can only run code from the symbolic toolbox in Answers.
Frederik Jensen
2021년 5월 18일
카테고리
도움말 센터 및 File Exchange에서 Numeric Solvers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
