# The voltage Vc(t) (in V) and the current i(t) (in Amp) t seconds after closing the switch

## Question:

Vc(t) = V0(1- e-t/τo )

i(t) = v0/R e-t/τo

where τo = RC is the time constant. Consider the case where V0 = 24 V, R = 3800 Q and C = 4000 x I0-6 F. Determine the voltage and the current during the first 20 s after the switch is closed. Create a vector with values of times from 0 to 20 s with spacing of 2 s, and use it for calculating Vc(t) and i(t). Display the results in a three-column table where the values of time, voltage and current are displayed in the first, second, and third columns, respectively.

Fantastic news! We've Found the answer you've been seeking!

## Step by Step Answer:

**Related Book For**