How to use use a butterworth narrow passband filter signal on work window

2 views (last 30 days)
I designed a narrow passband butterworth filter which passband are 20-29Hz by fdatool.But,when i save it as a M-file,and use it to filter a sound at work window,the result is incredible,its figure is a straigh line.
Sampling frequence is 48000Hz;Stop band:10-40;Order is minimum;Sound is Chirp;
clc;clear;
BPF=load('20-29.mat');
[b,a]=sos2tf(BPF.SOS,BPF.G);
Load chirp;fs=8000;
f1=filter(b1,a1,y);
N=length(y);
t=(0:N-1)/fs;
subplot 211
plot(t,y);title('original signal')
subplot 212
plot(t,f1);title('filter signal')
hhh.jpg

Answers (1)

Star Strider
Star Strider on 4 Dec 2018
This is likely impossible. No filter that I am aware of will be able to define such a narrow passband at such a high sampling rate. I cannot even get highpass and lowpass elliptical filters (that I would then cascade) to work with those design constraints.
  4 Comments
zhe wang
zhe wang on 10 Jan 2019
yeh,and i find the results lost some details.And i find i can use fdesign.bandpass to design my filter thought the fs is so large.
I design filters with software, and just study sinal&system about 6 mouths,so there are many difficulties for me.
thank you!Have a nice day.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!