38. A circuit that filters out a certain frequency is shown in the figure. In this filter,...

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 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.

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

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: