Question: 38. A circuit that filters out a certain frequency is shown in the figure. In this filter, the ratio of the magnitudes of the voltages

38. A circuit that filters out a certain frequency is shown in the figure. In this filter, the ratio of the magnitudes of the voltages is given by:

where , and f is the frequency of the input signal.

Write a user-defined MATLAB function that calculates the ratio of magnitudes. For the function name and arguments, use RV=filtafreq(

R,C,L,f). The input arguments are R the size of the resistor in

(ohms); C, the size of the capacitor in F (farad); L, the inductance of the coil in H (henrys); and

f, the frequency of the input signal in Hz (hertz). Write the function such that f can be a vector.

Write a program in a script file that uses the filtafreq function to generate a figure with two plots of RV as a function of f for Hz. In one plot F, mH, and , and in the second plot C and L are unchanged but .. The plot has a logarithmic scale on the horizontal axis. Label the axes and display a legend.

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 Systems Analysis And Design Using MATLAB Questions!