Unit Conversion
R2026bConvert units
Libraries:
Simulink /
Signal Attributes
Description
The Unit Conversion block converts the unit of the input signal to the output signal. The block can perform the conversion if the units are separated by a scaling factor or offset, or are inverse units, for example:
y = a*U
y = a*U+b, where a is the scale and b is the offset
y = a/U
This block supports normal, accelerator, and rapid accelerator modes and fast restart.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
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/Signal Attributes/Unit Conversion"
Example: add_block("simulink/Signal Attributes/Unit Conversion","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2016a

