| Stateflow User's Guide | ![]() |
Calling a Graphical Function
Once you make a function, you call it from a transition condition or one of the actions of a state or transition. The function you added in Adding a Graphical Function returns the comparison value that you test for in the transition segment from the junction to the state Hi. Use the following steps to call the function hot in the condition of that transition segment:
[hot()].
[!hot()], as shown.
SFcontrol4).
| Adding a Graphical Function | Simulating with a Sensor Event, Junction, and Function | ![]() |
© 1994-2005 The MathWorks, Inc.