Question: The voltage in a second-order RLC circuit is given by: v ( t ) = 5 + e 5 t ( 4 cos ( f

The voltage in a second-order RLC circuit is given by:

v ( t ) = 5 + e 5 t ( 4 cos ( f t ) + 9 sin ( f t ) ) [ V o l t s ] [Volts],

where t is time in seconds and f is signal frequency. Create an m-file that:

  1. Creates a time vector, t, that starts at 0 and ends at 2 seconds with enough data points to ensure a smooth plot (i.e. no jagged lines you may need to run the program a few times before you settle on the best number of points).
  2. Calculates the voltage according to the given formula above
  3. Recalculates the voltage changing the sinusoidal frequency from 3 to the following: 5, 10, and 20. (Thus, you will have 4 different voltage calculations call them v1, v2, v3, and v4, respectively).
  4. Plot all four voltage calculations versus time on the same figure. Include labels for both axes as well as the title of the figure. Include a legend. Each plot should be a solid line but in four different colors with no markers.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!