How to rearrange multiple variables within multiple equations.
3 views (last 30 days)
Show older comments
I have these 4 equations. I need to isolate Ia_dot,Ib_dot,Ic_dot, and If_dot (Each variable should not contain the other 3 variables). Each variable is syms and is defined as 'real'.
Ia_dot = -(Rss*Ia+Va)/Lss + (X_deva*we*If+Xa*If_dot)/Lss
Ib_dot = -(Rss*Ib+Vb)/Lss + (X_devb*we*If+Xb*If_dot)/Lss;
Ic_dot = -(Rss*Ic+Vc)/Lss + (X_devc*we*If+Xc*If_dot)/Lss;
If_dot = -(Rf/Lf)*If - Vf/Lf+([X_deva X_devb X_devc]*[Ia Ib Ic]'*we+[Xa Xb Xc]*[Ia_dot Ib_dot Ic_dot]')/Lf;
I have tried to use the solve function. My attempt with solve, I get "Empty sym: 0-by-1"
Ia_eqn = Ia_dot == -(Rss*Ia+Va)/Lss + (X_deva*we*If+Xa*If_dot)/Lss;
Ib_eqn = Ib_dot == -(Rss*Ib+Vb)/Lss + (X_devb*we*If+Xb*If_dot)/Lss;
Ic_eqn = Ic_dot == -(Rss*Ic+Vc)/Lss + (X_devc*we*If+Xc*If_dot)/Lss;
If_eqn = If_dot == -(Rf/Lf)*If - Vf/Lf+([X_deva X_devb X_devc]*[Ia Ib Ic]'*we+[Xa Xb Xc]*[Ia_dot Ib_dot Ic_dot]')/Lf;
solve([Ia_eqn,Ib_eqn,Ic_eqn,If_eqn], If_dot)
Any help will be deeply appreciated!
0 Comments
Answers (0)
See Also
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!