Why is MATLAB "solve" not finding a solution?
Mostra commenti meno recenti
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 Commenti
Jie
il 9 Dic 2013
Not all equations have explicit solutions. Try numerical solution by fsolve or fzero. To be honest, I don't understand the way you write your equation much. I wish I could help..
Kevin Bachovchin
il 9 Dic 2013
Kevin Bachovchin
il 9 Dic 2013
Kevin Bachovchin
il 9 Dic 2013
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Common Operations 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!