Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

Threshold

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

Characteristics

Data Types

Double | Single | Boolean | Base Integer | Fixed-Point

Direct Feedthrough

Yes

Multidimensional Signals

Yes

Variable-Size Signals

No

Zero-Crossing Detection

No

Code Generation

Yes

Introduced before R2006a

Was this topic helpful?