Creating Notch Filters Cheby1 and Butterworth

6 views (last 30 days)
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)

Accepted Answer

Terry Carney
Terry Carney on 15 May 2021
I figured it out... :)

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!