Stateflow User's Guide Previous page   Next Page

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


Previous page  Binary and Bitwise Operations Assignment Operations Next page

© 1994-2005 The MathWorks, Inc.