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
disp('cutoff frequency')
w0 = 1/(R*C)
G = 1/(1+s*R*C);
bode (G)
Response-
Enter the value of R
R10
R =
10
Enter the value of C
C0.001
C =
1.0000e-03
cutoff frequency
w0 =
100
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.