174 TIME-DEPENDENT CIRCUIT ANALYSIS
% Element parameters
ZL1 = 100j;
ZL2 = 100j;
ZC1 = -50j;
ZC2 = -50j;
% I = inverse (Z) *V
I = inv ([RS+ZC1+ZL2 -ZL2 -ZC1;
-ZL2 ZL2+ZC2+RL -ZC2;
-ZC1 -ZC2 ZC1+ZC2+ZL1]) * [VS 0 0]’;
% Mesh Currents
IA = I(1)
IB = I(2)
IC = I(3)
% Answers
KI + RL*IB/VS
ZIN + VS/IA-RS
IA + 0.0100 - 0.0300i
IB = -0.0100 + 0.0300i
IC=0-0.1000i
K = -0.0500 + 0.1500i
ZIN = 5.0000e+01 + 3.0000e+02i
EXAMPLE 3.6.2
Consider the circuit shown in Figure E3.6.2 in thet-domain as well as in thes-domain. Formulate
thes-domain nodal equations and use MATLAB to solve forVA(s)andVB(s).
iS(t)
L
RRC
(a)
IS(s) CvC(0)
VA(s)
at node A
VB(s)
at node B
Ls
Cs
1
(b)
s
iL(0)
Figure E3.6.2(a)t-domain.(b)s-domain.
Solution
At nodeA:
VA(s)
R
+
VA(s)−VB(s)
Ls
−IS(s)+
iL( 0 )
s
= 0