Engee documentation

Sign

Defining the sign of an entry.

sign

Description

For real input signals, the Sign block 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

Port_1 - input signal
scalar | vector | matrix

Input signal whose sign is to be determined.

Data types: `Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool.

Support for complex numbers: Yes

Output

Port_1 - output signal
scalar | vector | matrix

Output signal that shows the sign of the input signal.

Data types: Float64.

Support for complex numbers: Yes

Additional options

C code generation: Yes