Search for question
Question

Pre-lab Exercise #5. Determine an expression for the capacitor voltage for the circuit in Fig. 3

valid for t> 0 given R = 10k2, C = 0.1μF, v(0) = v= 1V, and V, V, -1V.

v(t) =

Write a MATLAB script file to compute the capacitor voltage v(t) by calculating the voltage

from time t= 0 to t= 5ms in increments of 1 ms. Use the results to complete the Calculated

column of Table 2. Include a copy of the script file and output in your report.

Calculated (C)

t (ms)

0

ve(t) (V)

Simulated (S) (C-S)/S 100% Measured (M) (M-C)/C 100%

t (ms)

0

1.0

2.0

3.0

4.0

5.0

Table 1. Comparison of Calculated, Simulated, and Measured first-order RC circuit step

response.

ve(t) (V)

Calculated (C) Simulated (S) (C-S)/S* 100% Measured (M) (M-C)/C*100%

1.0

2.0

3.0

4.0

5.0

Table 2. Comparison of Calculated, Simulated, and Measured first-order RC circuit step

response.

9-5

Fig: 1