Design IIR filter with filterDesigner function

15 ビュー (過去 30 日間)
S.M
S.M 2022 年 12 月 26 日
編集済み: Abhishek 2025 年 4 月 30 日
I want to design a 3rd degree ( order 3 ) IIR lowpass butterworth filter using " filterDesigner function " with defualt Fs and Fc. I set quantization parameters, choose filter arithmetic to "fixed-point" and set coeffcient and input word length to 8 bits. then I realize model and choose build model using basic elements and click to realize model. when simulink started and I add step input and oscilloscope to see step response, output in simulink isn't same with that ouput that is shown in filterDesigner window.( pls ask me for further explanation in case the text was not clear. thx )
  1 件のコメント
Jan
Jan 2022 年 12 月 27 日
Note: This is not twitter - no # before the tags. Thanks.

サインインしてコメントする。

回答 (1 件)

Abhishek
Abhishek 2025 年 4 月 30 日
編集済み: Abhishek 2025 年 4 月 30 日
Hi S.M,
I understand you have designed a lowpass Butterworth filter and are seeing different step responses in “filterDesigner” and Simulink. The issue is reproducible with the specified quantization parameters in MATLAB R2024b and can be resolved by setting the “Input fraction length parameter” under “Input/Output” tab to “7”.
Since, the input word length is changed to 8 bits, the input fraction length should also be changed from 15 (which is used for a 16-bit input) to 7. This ensures the input values are interpreted correctly, making the step response output in Simulink match the output shown in “filterDesigner”.
For more information on the Input/Output parameters of filter designer, please refer to the below MATLAB documentation:
Hope this helps!

カテゴリ

Help Center および File ExchangeFilter Design についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by