Question: 37. The simple RC high-pass filter shown in the figure passes signals with frequencies higher than a certain cutoff frequency. The ratio of the magnitudes
37. The simple RC high-pass filter shown in the figure passes signals with frequencies higher than a certain cutoff frequency. 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 given values of R, C, and
f. For the function name and arguments, use RV = RCFilt(R,C,f). The input arguments are R, the size of the resistor in (ohms); C, the size of the capacitor in F (farad); 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 RCFilt function to generate a plot of RV as a function of f for Hz. The plot has a logarithmic scale on the horizontal axis. When executed, the script file asks the user to enter the values of R and C. Label the axes of the plot.
Run the script file with , and F.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
