How to use use a butterworth narrow passband filter signal on work window
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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')
0 comentarios
Respuestas (1)
Star Strider
el 4 de Dic. de 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 comentarios
Ver también
Categorías
Más información sobre Digital Filter Design en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!