A matlab warning on solving equations

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 4K views
mech-eng
Messages
826
Reaction score
13
Hi,
>> d = 'x^2 + 9*x –7 = 0';
>> solve(d)
Error using solve>processString (line 354)
' x^2 + 9*x –7 = 0 ' is not a valid expression or equation.

Error in solve>getEqns (line 284)
eqns = processString(eqns, v, vc);

Error in solve (line 160)
[eqns,vars,options] = getEqns(varargin{:});

I can not understand what is the problem here?
 
Physics news on Phys.org