Why filter orders are always Even numbers?
13 ビュー (過去 30 日間)
古いコメントを表示
I designed a digital filter and while experimenting with the filter order, I came across the following warning when I use an odd filter order,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/279090/image.png)
I read about the filter documentation that says,
b = firls(n,f,a) % Returns row vector b containing the n+1 coefficients of an order-n FIR filter.
% The frequency and amplitude characteristics of the resulting filter match those given by vectors f and a.
but nowhere it is mentioned that I should use an even number for a filter order.
I can ofcourse design my filter with an even order. But I wish to understand the warning.
I'm new to signal processing and any insights to help me understand the warning would be really helpful.
0 件のコメント
回答 (1 件)
Sindhu Karri
2020 年 4 月 1 日
According to my understanding when firls function is trying to calculate frequency response H(k) components depending on the given f,b values it is getting H(1) as non zero value but which should be zero value for the fir to be type 2 filter(odd order symmetric filter).So it is incrementing the order by 1 so that it becomes type 1 filter(even order symmetric filter) for which H(1) need not be zero.
For better understanding please refer to the table given at the end of the documentation
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Filter Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!