Creating Notch Filters Cheby1 and Butterworth

조회 수: 7 (최근 30일)
Terry Carney
Terry Carney 2021년 5월 14일
답변: Terry Carney 2021년 5월 15일
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)

채택된 답변

Terry Carney
Terry Carney 2021년 5월 15일
I figured it out... :)

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by