solve returns variable name instead of value
Mostra commenti meno recenti
When running the solve() command, no matter how complex or simple, it will return the variable name instead of its value.

Risposta accettata
Più risposte (1)
This is exactly as documented.
syms x
result=solve(4 == 2+x,x)
res=double(result) %convert symbolic to double
7 Commenti
Frederik Jensen
il 17 Mag 2021
Frederik Jensen
il 17 Mag 2021
Rik
il 17 Mag 2021
Which release are you using?
Star Strider
il 17 Mag 2021
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
il 17 Mag 2021
Rik
il 18 Mag 2021
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
il 18 Mag 2021
Categorie
Scopri di più su Numeric Solvers in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
