# A simple electric circuit consisting of a resistor, a capacitor, and an inductor is depicted in Fig.

## Question:

A simple electric circuit consisting of a resistor, a capacitor, and an inductor is depicted in Fig. P2.6. The charge on the capacitor q(t) as a function of time can be computed as

where t = time, q_{0 }= the initial charge, R = the resistance, L = inductance, and C = capacitance. Use MATLAB to generate a plot of this function from t = 0 to 0.8, given that q_{0 }= 10, R = 60, L = 9, and C = 0.00005.

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

## Step by Step Answer:

**Related Book For**

## Applied Numerical Methods With MATLAB For Engineers And Scientists

**ISBN:** 9781259027437

3rd Edition

**Authors:** Steven C. Chapra