Why is MATLAB "solve" not finding a solution?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Kevin Bachovchin
el 9 de Dic. de 2013
Comentada: Walter Roberson
el 9 de Dic. de 2013
Hello,
I have a system of equations:
-id = 0
qd/(C*L) - (Vs - R*id)/L = 0
I'm trying to solve this system of equations for id and Vs using the MATLAB solve function. After defining all variables as syms, I'm using the below code
Equations = [-id ; qd/(C*L) - (Vs - R*id)/L]
Solution = solve(Equations==0,id,Vs)
However, this is producing a warning, "Explicit solution could not be found." Why isn't MATLAB able to find a solution here?
There is a solution (id = 0, Vs = qd/C) which can be easily solved by hand.
Thank you,
Kevin
4 comentarios
Respuesta aceptada
Walter Roberson
el 9 de Dic. de 2013
Potentially it is a clash with a MuPAD name. See http://www.mathworks.com/help/symbolic/mupad_ref/id.html
2 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!