MATLAB: Is it possible to have a block in Simulink which can create a binary representation of a fixed point object in Simulink 7.3 (R2009a)

simulink

I would like to be able to generate a binary representation of stored integer of fixed point object.
Currently, I can use the BIN function available in the Fixed-Point Toolbox 2.4 (R2009a). I would like to have an equivalent block in Simulink for the same.

Best Answer

The attached model 'example_model.mdl' creates a binary representation of a fixed point object. When you simulate it, it will provide you with the required binary representation values.
To achieve this, you need to select the 'Display' block in the model and then set the property from the MATLAB command line as follows:
set_param(gcb, 'Format', 'binary (Stored Integer)')
Another approach would be to double click on the 'Display' block, click on the drop-down list of the 'Format', and select the 'binary( Stored Integer)' option.