Creating Notch Filters Cheby1 and Butterworth
2 views (last 30 days)
Show older comments
Terry Carney
on 14 May 2021
Answered: Terry Carney
on 15 May 2021
I'm trying to create both a Chebychev Type 1 and Butterworth Notch filter. The filters have to produce a min attenuation of 60dB at 10Hz, with a rippe of .01dB. However, my output does not look like a typical notch filter after filtering, using cheby1 for example. What am I doing wrong?
clear;close all;
%Setting up signal:
fs = 200; %Sample Frequency
Ts = 1/fs; %Sample Period
t = 0:Ts:9.9950;
x = load("data2.txt");
plot(t,x);
b = cheby1(2,.01,.1)
x2 = filtfilt(b,1,x)
fvtool(b,1)
figure(1)
plot(t,x2)
0 Comments
Accepted Answer
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!