Direct Current and Transient Analysis 183
Example 2.25The switch of the circuit diagram shown in Figure 2.85 is open for t < 0, and it closes at
t = 0 where it remains indefi nitely. Obtain- Analytical expressions for vc(t), vR(t), and i(t) assuming that ic(0) = 0 A, for t ≥ 0.
- Create the script fi le RC that returns the MATLAB symbolic solutions for vc(t), vR(t),
and i(t) by solving the corresponding loop differential equation for each of the
following cases: R = 1, 2, and 5 Ω. - The plots of
a. vc(t) versus t
b. vR(t) versus t
c. i(t) versus t
FIGURE 2.84
Transient voltage plots across R of Example 2.24.0 0.5 1 1.5 2 2.5 301234567891011time t/secVoltages across R for, R = 1, 2, and 5voltageR = 5 ohms
R = 2 ohmsR = 1 ohmFIGURE 2.85
Network of Example 2.25.V 0 = 10 V RSwitch closes at t = 0 C = 0.5 FANALYTICAL Solution
The loop differential equation and its solution are given as follows:RC
dv t
dtC vt VCCvt V Vet t
()
() 00 and () 0 for 0