416 Practical MATLAB® Applications for EngineersExample 4.13The switch sw shown in the circuit diagram of Figure 4.64 has been opened for a long
time. At t = a = 0, the sw closes and remains closed for t ≥ 0. Assume that all the initial
conditions are zero. Determine by hand an expression for i(t). Create the script fi le analy-
sis_RLC that returns i(t) using the LT, and obtain plots of i(t) versus t for t ≥ 0, using a
numerical and symbolic approach.
Also obtain the symbolic expression fot i(t), for t ≥ 0, using Laplace for the case when
the sw closes at t = a = 1.ANALYTICAL SolutionZs R sL
sC() ( )
1
total impedenceFIGURE 4.64
Circuit diagram of Example 4.13.
50 VR = 2 ΩL = 1 HC = 0.1 Fsw closes at t = ai(t)0001 2 3 4 50.5 110.5−0.5010.5−0.5
− 11.5 2345 2.5 3.5 4.5time (sec)time (sec)v 0 (t) versus t (symbolic solution)v 0 (t) versus t (numerical solution)Amplitude (volts)Amplitude (volts)FIGURE 4.63
Numerical and symbolic plots of v 0 (t) of Example 4.12.