Apply rounding function to signal
You can select one of the following rounding functions from the Function list:
Rounds each element of the input signal to the nearest integer value towards minus infinity.
Rounds each element of the input signal to the nearest integer towards positive infinity.
Rounds each element of the input signal to the nearest integer.
Rounds each element of the input signal to the nearest integer towards zero.
The name of the selected function appears on the block.
The input signal can be a scalar, vector, or matrix signal having
real- or complex-valued elements of type
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.
Tip: Use the Rounding Function block instead of the Fcn block when you want vector or matrix output, because the Fcn block produces only scalar output.
Also, the Rounding Function block provides two
more rounding modes. The Fcn block supports
The Rounding Function block accepts and outputs real signals
For more information, see Data Types Supported by Simulink in the Simulink® documentation.
Specify the rounding function.
This parameter is not visible in the block dialog box unless
it is explicitly set to a value other than
Double | Single
Inherited from driving block