Negation Operator

Note

Only available in the block diagram editor for software components.

The Negation operator returns the negative value of the argument. Argument and return value can be cont or discrete (see also Scalar Types); if the argument is cont, the type of the return value should be the same.

See also

Scalar Types

Arithmetic Operators

Logical Operators

Comparison Operators

Input Operators

Conditional Operators

Control Flow Operators

Miscellaneous Basic Blocks