Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Wrap To Zero

Set output to zero if input is above threshold

Library

Discontinuities

Description

The Wrap To Zero block sets the output to zero when the input is above the Threshold value. However, the block outputs the input when the input is less than or equal to the Threshold.

Data Type Support

The Wrap To Zero block accepts inputs of the following data types:

  • Floating point

  • Built-in integer

  • Fixed point

  • Boolean

The block output has the same data type as the input. For more information, see Data Types Supported by Simulink in the Simulink® documentation.

    Tip   If the input data type cannot represent zero, parameter overflow occurs. To detect this overflow, go to the Diagnostics > Data Validity pane of the Configuration Parameters dialog box and set Parameters > Detect overflow to warning or error.

Parameters and Dialog Box

Threshold

When the input exceeds the threshold, the block sets the output to zero.

Characteristics

Direct Feedthrough

Yes

Scalar Expansion

Yes

Multidimensionalized

Yes

Zero-Crossing Detection

No

Was this topic helpful?