SOLVE command with SYMS
Mostra commenti meno recenti
Hi,
I have the Symbolic Math Toolbox. However, I can't even perform the following operation, which is copied and pasted from the Mathworks website on the usage of Symbolic Math Toolbx.
syms x
solve(x^2 + 4*x + 1 == 0)
The error says the following:
??? Input argument "x0" is undefined.
Error in ==> solve at 56
x=x0;
This isn't really what I'm trying to do. I have a system of non-linear equations and I get a whole different error messages, but the fact that I can't even perform a simple solving operation such as the above makes me think that there's something fundamentally wrong.
Can you please help me?
Thanks,
Eric
3 Commenti
Walter Roberson
il 6 Set 2012
Please check that you are getting the right solve() with
which -all solve
Also, which version are you using? The ability to put in logical expressions is quite new.
Walter Roberson
il 6 Set 2012
Using the == in that context was not yet allowed in R2011a.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Numeric Solvers in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!