Question: A simple electric circuit consisting of a resistor, a capacitor, and an inductor is depicted in the figure. The charge on the capacitor q(t)

A simple electric circuit consisting of a resistor, a capacitor, and an

A simple electric circuit consisting of a resistor, a capacitor, and an inductor is depicted in the figure. The charge on the capacitor q(t) as a function of time can be computed as: q(t) = que-Rt/(2L) cos Where t is the time, qo is the initial charge, R is the resistance, L is the inductance, and C is the capacitance. (a) Write a MATLAB script that asks the user for two points in time (e.g. t = 0 and t-1), the value of the initial charge, the value of the resistance, the value of the capacitance, and the value inductance. The script plots q(t) over the given time interval. Make sure to label the axes of the plot. (b) Generate the plot for the specific case of (t from 0 to 0.8, qo=10, R-60, L-9, and C=0.00005) Battery Vo Switch Capacitor Resistor ele Inductor

Step by Step Solution

3.43 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

MATLAB CODE R 60 L9 C00000... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!