Design IIR filter with filterDesigner function
    7 views (last 30 days)
  
       Show older comments
    
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 Comment
Answers (1)
  Abhishek
 on 30 Apr 2025
        
      Edited: Abhishek
 on 30 Apr 2025
  
      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!
0 Comments
See Also
Categories
				Find more on Filter Design in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!