Hello, I want to use the LPC function to achieve AR pre-whitening, will the AR coefficient obtained by fftfilt filtering signal is a residual signal?
6 次查看(过去 30 天)
显示 更早的评论
Hello, I want to use the LPC function to achieve AR pre-whitening, will the AR coefficient obtained by fftfilt filtering signal is a residual signal?Is the following code correct?
x = x - mean(x);
Na = 100; %It is assumed that Na is the AR model order of the maximum kurtosis of the residual signal
a = lpc(x,Na);
x = fftfilt(a,x);
x = x(Na+1:end); %Is the resulting x a residual signal? Or do you need to subtract this signal from the original signal to make a residual signal?
0 个评论
采纳的回答
Paul
2023-9-12
Hello Yx Y,
xest = fftfilt([0 -a(2:end)],x);
xest = xest(Na+1:end);
and the residual error would be
res = xest - x(Na+1:end);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Digital Filter Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!