Integer to Bit Converter
R2026bMap vector of integers to vector of bits
Libraries:
Simulink /
Logic and Bit Operations
Description
The Integer to Bit Converter block maps each integer (or fixed-point value) in the input vector to a group of bits in the output vector.
This block is single-rate and single-channel. The block maps each integer value (or stored integer when you use a fixed point input) to a group of M bits, using the selection for the Output bit order to determine the most significant bit. The resulting output vector length is M times the input vector length.
Ports
Input
Output
Parameters
Block Characteristics
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"simulink/Logic and Bit Operations/Integer to Bit Converter"
Example: add_block("simulink/Logic and Bit Operations/Integer to Bit Converter","myModel/myBlock",MakeNameUnique="on")