| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
Math Operations

The Sign block indicates the sign of the input:
The output is 1 when the input is greater than zero.
The output is 0 when the input is equal to zero.
The output is -1 when the input is less than zero.
The Sign block accepts real signals of any numeric data type supported by Simulink software, including fixed-point data types. The output is a signed data type with the same number of bits as the input, and with nominal scaling (a slope of one and a bias of zero).
For a discussion on the data types supported by Simulink software, see Data Types Supported by Simulink in the Simulink documentation.

Select to enable zero-crossing detection. For more information, see Zero-Crossing Detection.
Specify the time interval between samples. To inherit the sample time, set this parameter to -1. See How to Specify the Sample Time in the online documentation for more information.
Direct Feedthrough | Yes |
Sample Time | Specified in the Sample time parameter |
Scalar Expansion | N/A |
Dimensionalized | Yes |
Zero-Crossing Detection | Yes, if enabled. |
![]() | Shift Arithmetic | Signal Builder | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |