FixPt Sign

Indicate the sign of the input.

Description

The FixPt Sign block is a masked S-function that indicates the sign of the input:

  • The output is 1 when the input is greater than zero.

  • The output is 0 when the input is equal to zero.

  • The output is -1 when the input is less than zero.

The output is a signed data type with the same number of bits as the input, and with nominal scaling (a slope of one and a bias of zero).

Parameters and Dialog Box

Characteristics

Input Port 

Any data type supported by the blockset

Output Port 

A signed Fixed-Point Blockset data type

Direct Feedthrough

Yes

Sample Time

Inherited

Scalar Expansion

N/A

States

0

Vectorized

Yes

Â