Binary Vector Conversion
R2026bConvert scalar integer to binary logic vector and vice versa
Libraries:
Mixed-Signal Blockset /
Utilities
Description
The Binary Vector Conversion block encodes, decodes, and manipulates binary coded vectors. You can convert a scalar input to a logical (Boolean) vector signal using binary magnitude or two's complement and vice versa. You can also resize and reverse the bit index arrangement of the binary logic vectors.
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"msbUtilities/Binary Vector Conversion"
Example: add_block("msbUtilities/Binary Vector Conversion","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2021a
