MATLAB: How to set an FI object in MATLAB using Fixed-Point Toolbox to match the default fi object in Simulink

simulink

I would like to use the FI command to set the data within Simulink, but the default fi object created in Simulink has different properties than the default Fixed-Point Toolbox fi object. How can I match their properties?

Best Answer

Simulink has some default options for a fi object. There is no automatic way of creating a new fi object in MATLAB to the Simulnk specification.
As workaround, specify the following properties when creating a fi object in MATLAB:
RoundMode: 'floor'
Overflow: 'wrap'
ProductMode: 'keeplsb'
SumMode: 'keeplsb'