796 Solving Differential Equations with MATLAB MATLAB has a built-in function for solving ordinary differential equations called

Question:

7–96 Solving Differential Equations with MATLAB MATLAB has a built-in function for solving ordinary differential equations called dsolve. We can use this function to quickly explore the solution to a second-order differential equation when the forcing function is a sinusoidal or exponential signal.

Suppose we have a series RLC circuit in the zero state connected to a voltage source vTðtÞ. The parameter values are R=4 kΩ, L= 1 H, and C= 1 μF. The differential equation for the voltage across the capacitor is given by Eq. (7–33). If vTðtÞ = 10 uðtÞ V, we can use the following MATLAB code to solve for the capacitor voltage and plot the results.

image text in transcribed

Run the given MATLAB code and examine the results. Modify the code to solve the same problem when the input voltage is vTðtÞ = 10 cosð200 πtÞ V. Solve the problem a third time for vTðtÞ = 10e−2000t V. Compare and comment on the responses for the three different types of input signals.

Step by Step Answer:

Related Book For  book-img-for-question

The Analysis And Design Of Linear Circuits

ISBN: 9781119235385

8th Edition

Authors: Roland E. Thomas, Albert J. Rosa, Gregory J. Toussaint

Question Posted: