1
我正在设计一个滤波器来消除一段音频中的噪音。我发现噪声频率位于频谱中的745至1965赫兹,但我不知道如何使多个陷波滤波器去除这两个特定频率如何在MATLAB中制作多陷波滤波器?
这是我的代码。我只能删除音频中的一个频率。有没有什么办法让MATLAB中的两个过滤器卷积?
%Reading first sample file
[x1,fs1] = audioread('sample.wav');
%Creating the time span for the file
t1=(0:length(x1)-1)/fs1;
%Creating the frequency span for the file
k1 = 0:length(x1)-1;
f1=k1*fs1/length(x1);
wg=[744.5*2/fs1 745.5*2/fs1 ];
%Creating filter
[b1,a1] = butter(2,wg,'stop');
%Performing filtering on file
x1f = filter(b1,a1,x1);
太感谢你了,我只是想CONV功能比较滤波后的信号,它的作品! –