Simple Solve command not working.
Mostrar comentarios más antiguos
My command:
solve('0.5 - 25/8 + 4*E = 0',E)
The error:
Warning: Explicit solution could not be found. > In solve at 83
ans =
[ empty sym ]
W...what? Is this a joke?
MATLAB 7.12.0(R2011a)
1 comentario
baba gump
el 3 de Jul. de 2012
Respuestas (1)
Teja Muppirala
el 4 de Jul. de 2012
When you use solve with a string input, it interprets the "E" as exp(1). Try this:
solve('x = E', 'x')
If you really want to call your variable E, then remove the apostrophes:
syms E
solve(0.5 - 25/8 + 4*E == 0,E)
Categorías
Más información sobre Numeric Solvers en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!