How to use use a butterworth narrow passband filter signal on work window
조회 수: 3 (최근 30일)
이전 댓글 표시
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/198235/image.jpeg)
댓글 수: 0
답변 (1개)
Star Strider
2018년 12월 4일
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
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!