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!
