필터 지우기
필터 지우기

What is the difference between filter and conv?

조회 수: 12 (최근 30일)
njj1
njj1 2018년 3월 6일
편집: Honglei Chen 2018년 3월 7일
I am trying to design a predictive AR filter using aryule. The code looks like this:
h = aryule(signal,order);
est_signal1 = filter(1,h,signal);
est_signal2 = conv(-h(2:end),signal);
When I do this, the est_signal1 has a different amplitude than the original (generally larger). However, est_signal2 is much more similar (so long as you cut off the final 'order' number of entries). But the AR model is an all pole filter, so using filter(1,h,signal) should work the same as conv(-h(2:end),signal), right?

답변 (2개)

Honglei Chen
Honglei Chen 2018년 3월 7일
편집: Honglei Chen 2018년 3월 7일
I don't know the detail about your signal. But if the question is between filter and conv, they are only similar when you talk about FIR filters. For an IIR filter, they are different. The example you listed above in general should not give you the same answer.

Abhishek Ballaney
Abhishek Ballaney 2018년 3월 7일
https://in.mathworks.com/help/matlab/ref/filter.html
https://in.mathworks.com/help/matlab/ref/conv.html

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by