Stateflow User's Guide Previous page   Next Page

Adding a Graphical Function for Convenience

In Adding a Junction for Flow Control, you add a junction to the Stateflow diagram to provide two-speed control to a control device such as a motor. You can improve the compactness and readability of this diagram with a graphical function that you add in the following procedure topics:

  1. Adding a Graphical Function -- Add and program a small graphical function to replace some lengthy conditions.
  2. Calling a Graphical Function -- Call a graphical function from the action language of a transition.

Previous page  Entering Transition Conditions Adding a Graphical Function Next page

© 1994-2005 The MathWorks, Inc.