420 Practical MATLAB® Applications for Engineers
Example 4.15The switch in the circuit diagram of Figure 4.67 is closed for a long time. At t = 0, the
switch is opened and remains opened for t ≥ 0. Analyze by hand the given circuit using
the LT and obtain analytical expressions forv(t), ir(t), ic(t), il(t) for t ≥ 0
Create the script MATLAB fi le RLC_parallel that returns the plots of the analytical
results as well as the symbolic (Laplace) plots of v(t), ir(t), ic(t), il(t), over the range
− 2 ≤ t ≤ 5, and observe that both solutions are identical.3 A
switch opens at t = 0R = 20 ΩV(s) L = 5 H C = 1/40 FFIGURE 4.67
Circuit diagram of Example 4.15.
ANALYTICAL SolutionThe nodal equation yieldsVs Vs
ssV s
st
() () ()
20 5 403
for 0thenVs
ss
sVs
ss
ss
Vs s s()()()(1
201
540328
403222
88 120),solving for voltage Vs()Vs
ss s()
()
120(^22822)
120
7
7
17
⋅