Using SOLVE with large number of equations and variables
Mostra commenti meno recenti
Is there a way to use the command X = solve([eqn1, eqn2, eqn3, [x1 x2 x3]) for very large number of equations and variables without typing explicitly :equ1, equ2, equ3 and x1,x2,x3? The equations are Kirchoff's loop and node equations and the variables are the currents.
3 Commenti
J. Alex Lee
il 2 Gen 2020
Modificato: J. Alex Lee
il 2 Gen 2020
Edit: didn't see the rest of the question...I guess that depends on if there is a regular pattern in the circruit that would allow reducing your equations into a smaller set of rules.
Wouldn't the resulting set of equations be linear so that there would be no need to invoke a complicated solver?
M.P.
il 3 Gen 2020
J. Alex Lee
il 6 Gen 2020
Your problem seems not to be about solving the system (using direct versus iterative methods), but rather about the programming to sett up the problem. Also, I think I'm out of my depth if you are wanting to use symbolic toolbox.
Generally, if you have rules governing your equations, you can use things like loops to efficiently code them in.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Symbolic Math Toolbox 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!