Data Mapper
R2026bMap integer symbols from one coding scheme to another
Libraries:
Communications Toolbox /
Utility Blocks
Description
The Data Mapper block accepts integer inputs and maps them to integer outputs. The mapping types include: binary to Gray coded, Gray coded to binary, and user defined. Additionally, a pass through option is available.
Gray coding is an ordering of binary numbers such that all adjacent numbers differ by only one bit.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"commutil2/Data Mapper"
Example: add_block("commutil2/Data Mapper","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced before R2006a
