Simulink Reference | ![]() ![]() |
Apply a rounding function to a signal
Library
Description
The Rounding Function block applies a rounding function to the input signal to produce the output signal.
You can select one of the following rounding functions from the Function list:
The name of the selected function appears on the block icon.
The input signal can be a scalar, vector, or matrix signal having real- or complex-valued elements of type double
. The output signal has the same dimensions, data type, and numeric type as the input. Each element of the output signal is the result of applying the selected rounding function to the corresponding element of the input signal.
Use the Rounding Function block instead of the Fcn block when you want vector or matrix output, because the Fcn block can produce only scalar output.
Data Type Support
A Rounding Function block accepts and outputs real signals of type double
or single
.
Parameters and Dialog Box
Characteristics
Direct Feedthrough |
Yes |
Sample Time |
Inherited from driving block |
Scalar Expansion |
N/A |
Dimensionalized |
Yes |
Zero Crossing |
No |
![]() | Reshape | Saturation | ![]() |