Stateflow    

Unary Operations

The following unary operators are supported in Stateflow action language. Unary operators have higher precedence than binary operators and are evaluated right to left (right associative).

Example
Description
~a
Logical NOT of a
Complement of a (if bitops is enabled)
!a
Logical NOT of a
-a
Negative of a

Unary Actions

The following unary actions are supported in Stateflow action language.

Example
Description
a++
Increment a
a--
Decrement a


  Binary and Bitwise Operations Assignment Operations