Solve System of Equations for Mesh Circuit Analysis in S-Domain

27 次查看(过去 30 天)
I am trying to solve for input voltage in terms of one current (I3 in my case). I've used KVL to derive the equations, but beyond that I'm a bit lost. I looked around at MATLAB Answers and haven't found anything. When I solve my system, I get the following response: Vi = Empty sym: 0-by-1. What does that even mean?
syms I1 I2 I3 I4 Vi s
eqn1 = (2*s)*I1 +(-s)*I2 +(-2)*I4 - Vi==0;
eqn2 = (-s)*I1 +(2*s+1)*I2 + (-1)*I3==0;
eqn3 = (-1)*I2 + ((2/s)+1)*I3 +(-1/s)*I4==0;
eqn4 = (-s)*I1 + (-1/s)*I3 + (s+1/s)*I4==0;
Vi = solve(eqn1, eqn2, eqn3, eqn4, I3)
I've inserted by code above for reference. If anyone can provide a little guidance, that would be great. Thank you.

回答(1 个)

Vimal Rathod
Vimal Rathod 2021-2-23
Hi,
The reason you are getting an empty value from the solve function is because it cannot find a solution for the given set of equations. You could probably add more equations to the set of equations by using KCL equations.
Refer to the following link to know more about solve function
  1 个评论
Ian Van Giesen
Ian Van Giesen 2021-2-23
编辑:Ian Van Giesen 2021-2-23
Ah, okay perhaps I should have clarified. I am looking for the symbolic algebraic solution to this system of linear equations in terms of two variable (s and I3). I solved the problem by hand but the process was very tedious (~4 pages). @Vimal Rathod thank you for the input!

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Equation Solving 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by