Engee documentation

Sign

Determines the sign of the input.

sign

Description

For real input signals, the block Sign outputs the sign of the input signal:

Input data Output data

Greater than zero

1

Equal to zero

0

Less than zero

-1

Ports

Input

# IN_1 — input signal
scalar | vector | matrix

Details

An input signal whose sign is to be determined.

Data types

Float64.

Complex numbers support

No

Output

# OUT_1 — output signal
scalar | vector | matrix

Details

An output signal that shows the sign of the input signal.

Data types

Float64.

Complex numbers support

No

Additional options

C code generation: Yes