Frequency response of RC circuit can be determined by making a transfer function for given values of R and C in MATLAB.
Plotting frequency response by Bode Plot.
Following code will analyze the frequency response-
s = tf('s');
disp('Enter the value of R')
R = input('R')
disp ('Enter the value of C')
C= input ('C')
% calculate cutoff frequency
w0 = 1/(R*C)
G = 1/(1+s*R*C);
Enter the value of R
Enter the value of C
Magnitude and Phase plot-
It can be seen that after 100 rad/sec which is its cutoff frequency, the magnitude starts decaying.
So conclusion is this RC circuit behaves as a low pass filter of cut off frequency 100 rad/sec.
Get Answers For Free
Most questions answered within 1 hours.