Using Simulink | ![]() ![]() |
Output the absolute value of the input.
Library
Description
The Abs block generates as output the absolute value of the input.
Data Type Support
An Abs block accepts a real- or complex-valued input of any type and outputs a real value of the same data type as the input.
Dialog Box
When checked (default), the block maps signed integer input elements corresponding to the most negative value of that data type to the most positive value of that datatype.
When unchecked, the behavior of the block is undefined for signed integer input elements corresponding to the most negative value.
Characteristics
Direct Feedthrough |
Yes |
Sample Time |
Inherited from driving block |
Scalar Expansion |
N/A |
Dimensionalized |
Yes |
Zero Crossing |
Yes, to detect zero |
![]() | Simulink Block Libraries | Algebraic Constraint | ![]() |