我需要在Matlab中对一个信号应用一个移动窗口积分滤波器,我发现下面的代码显然是这样做但我不明白它是如何工作的,有人可以解释一下吗?
% Make impulse response
h = ones (1 ,31)/31;
Delay = 15; % Delay in samples
% Apply filter
x6 = conv (x5 ,h);
x6 = x6 (15+[1: N]);
x6 = x6/ max( abs(x6 ));
答案 0 :(得分:1)
答案 1 :(得分:1)
我不确定你提到的代码是否真的有移动窗口集成过滤器,但是它做了什么:
然后:
x6 = conv (x5 ,h); //this applies the filter
x6 = x6 (15+[1: N]); //this applies the delay, it should be x6 (Delay+[1:length(x5)])
x6 = x6/ max( abs(x6 )); // this normalizes the response