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

조회 수: 33 (최근 30일)
Ian Van Giesen
Ian Van Giesen 2021년 2월 21일
편집: Ian Van Giesen 2021년 2월 23일
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