Question: In MATLAB In a low-pass RL filter (a filter that passes sig- nals with low frequencies), the ratio of the magnitudes of the voltages is
In a low-pass RL filter (a filter that passes sig- nals with low frequencies), the ratio of the magnitudes of the voltages is given by: Vi Vo where ? is the frequency of the input signal. Write a user-defined MATLAB function that calculates the magnitude ratio. For the function name and arguments, use RV = LRF? It (R, L, w), The input arguments are R, the size of the resistor in ? (ohms); L, the size of the capacitor in H (Henry); and w, the frequency of the input signal in rad/s. Write the function such that w can be a vector. Write a program in a script file that uses the LRFilt function to generate a plot of RV as a function of ? for i?S ? 106 rad/s. The plot has a loga- rithmic scale on the horizontal axis (0) When the script file is executed, it asks the user to enter the values of R and L. Label the axes of the plot. Run the script file with R 600 ?, and L 0.14 ?F
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
