《弹拨音乐滤波去噪——使用凯塞窗设计的滤波器》 第16页 共15页
y_fil=fftfilt(h_bs,y);
Y_fil=abs(fft(y_fil));Y_fil=Y_fil(1:length(Y_fil)/2); figure (3);
subplot(3,2,1);plot(t,x);grid on; xlabel('时间');ylabel('原始信号'); subplot(3,2,2);plot(f,X);grid on; xlabel('时间');ylabel('加入的噪声信号'); subplot(3,2,3);plot(t,y);grid on; xlabel('频率');ylabel('原始信号频谱'); subplot(3,2,4);plot(f,Y);grid on;
xlabel('频率');ylabel('加入的噪声信号频谱'); subplot(3,2,5);plot(t,y_fil);grid on; xlabel('时间');ylabel('滤波之后的信号'); subplot(3,2,6);plot(f,Y_fil);grid on;
xlabel('频率');ylabel('滤波之后的信号频谱');