Map vector of bits to corresponding vector of integers
Communications Toolbox / Utility Blocks
The Bit to Integer Converter block maps groups of bits in the input vector to integers in the output vector.
If M is specified by the Number of bits per integer(M) parameter:
For unsigned integers, the block maps each group of M bits to an integer in the range [0, (2^{M} – 1)]. As a result, the output vector length is 1/M times the input vector length.
For signed integers, the block maps each group of M bits to an integer in the range [(–2^{M1}), (2^{M – 1} – 1)].
Data Types 

Multidimensional Signals 

VariableSize Signals 

^{[a]} Fixedpoint inputs must be ufix(1). ^{[b]} ufix(N) or sfix(N) when ASIC/FPGA is selected in the Hardware Implementation Pane and output datatype is set to either (a) Smallest integer or, (b) Inherit via internal rule and at the same time input is non floatingpoint. 