Using Simulink    
Sign

Indicate the sign of the input.

Library

Math

Description

The Sign block indicates the sign of the input:

Data Type Support

A Sign block accepts and outputs real signals of type double.

Dialog Box

Characteristics

Direct Feedthrough
Yes
Sample Time
Inherited from driving block
Scalar Expansion
N/A
Dimensionalized
Yes
Zero Crossing
Yes, to detect when the input crosses through zero


 S-Function Signal Generator