Design IIR filter with filterDesigner function

조회 수: 7 (최근 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 CenterFile Exchange에서 Filter Design에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by