Using SOLVE with large number of equations and variables
Mostrar comentarios más antiguos
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 comentarios
J. Alex Lee
el 2 de En. de 2020
Editada: J. Alex Lee
el 2 de En. de 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.
el 3 de En. de 2020
J. Alex Lee
el 6 de En. de 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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Symbolic Math Toolbox 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!