Simulate and plot Butterworth filter frequency response using transfer function
3 views (last 30 days)
Show older comments
I am attempting to the simulate the frequency response of a butterworth fiilter. The transfer function for the butterworth filter is, R/(s^3(L1)(L2)+S^2RC(L1)+S(L1+L2)+R). The filter is designed to be a bandpass filter at 1kHz.
This is the code I have
R = 10;
L1 = 10;
L2 = 10;
C = 1;
numerator = R;
a = L1*L2*C;
b = R*C*L1;
c = L1+L2;
denominator = [a, b, c, R];
sys = tf(numerator, denominator);
stepplot(sys)
0 Comments
Accepted Answer
Star Strider
on 11 Dec 2022
R = 10;
L1 = 10;
L2 = 10;
C = 1; % Changed
numerator = R;
a = L1*L2*C;
b = R*C*L1;
c = L1+L2;
denominator = [a, b, c, R];
sys = tf(numerator, denominator);
hbp = bodeplot(sys);
grid
setoptions(hbp, 'FreqUnits','kHz');
The component values need to be changed to achieve the desired frequency response. I leave that to you.
.
0 Comments
More Answers (0)
See Also
Categories
Find more on Digital Filter Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!