Using SOLVE with large number of equations and variables
Show older comments
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 Comments
J. Alex Lee
on 2 Jan 2020
Edited: J. Alex Lee
on 2 Jan 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.
on 3 Jan 2020
J. Alex Lee
on 6 Jan 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.
Accepted Answer
More Answers (0)
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!