How do I control the individual products and accumulator

C
camillajoy · Mar 13, 2021 · 1.9K views
Question
How do I control the individual products and accumulators of my DFILT object in Signal Processing Blockset 6.9 (R2009a)?   I can set the properties for my DFILT object, but I do not have access to each accumulator and multiplier input and output of a FIR and IIR filter, needed to assign their attributes, e.g., bit width and type of rounding. I can assign the attributes all at once. However, for optimal design, I may want to have some of the internal accumulators and multipliers of different sizes or do a different rounding.  
Expert Answer
Profile picture of John Williams
John Williams PhD Expert
Answered Aug 25, 2026
You can start with a DFILT object "Hd" that has a filter structure and coefficients and then use:
 
 
realizemdl(Hd)
to get a Simulink model in which you can control individual adders and gains. The following is an example:
 
 
[b,a] = butter(5,.5);

Hd = dfilt.df1(b,a);

%#1 Default syntax:

realizemdl(Hd);

%#2 Using parameter/value pairs:

realizemdl(Hd, 'Blockname', 'My Filter', 'OptimizeZeros', 'on');
100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!