Using SOLVE with large number of equations and variables
이전 댓글 표시
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
J. Alex Lee
2020년 1월 2일
편집: J. Alex Lee
2020년 1월 2일
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.
2020년 1월 3일
J. Alex Lee
2020년 1월 6일
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!