2019.11.27
% 滑动平均(均值滤波)
sliding_window = 5;
impulse_fft_tmp = impulse_fft_6k;
for i = 1+sliding_window:1:n-sliding_window
impulse_fft_tmp(i)=mean(impulse_fft_6k(i-sliding_window:i+sliding_window));
end
impulse_fft_6k = impulse_fft_tmp;
figure(3)
plot(impulse_fft_6k);
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/6973ca8c0fb958fab95b94987d7c878c.jpeg#pic_center)