solve returns variable name instead of value

2 次查看(过去 30 天)
When running the solve() command, no matter how complex or simple, it will return the variable name instead of its value.

采纳的回答

Frederik Jensen
Frederik Jensen 2021-5-18
Solved it by uninstalling the Maple toolbox, i had the two accounts connected and it somehow caused trouble.
It can be unsinstalled through the "Programs and Features" menu in the Control Panel.

更多回答(1 个)

Rik
Rik 2021-5-17
This is exactly as documented.
syms x
result=solve(4 == 2+x,x)
result = 
2
res=double(result) %convert symbolic to double
res = 2
  7 个评论
Rik
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
Frederik Jensen 2021-5-18
Solved it by uninstalling the Maple toolbox, i had the two accounts connected and it somehow caused trouble.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Assumptions 的更多信息

标签

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by