Rounding Function
R2026bApply rounding function to signal
Libraries:
Simulink /
Math Operations
Description
The Rounding Function block rounds each element of the input signal to produce the output signal.
You select the type of rounding from the Function parameter list. The name of the selected function appears on the block.
Tip
Use the Rounding Function block when you want vector or matrix output.
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/Math Operations/Rounding Function"
Example: add_block("simulink/Math Operations/Rounding Function","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.
Extended Capabilities
Version History
Introduced before R2006a