| Stateflow User's Guide | ![]() |
Constructor for creating a function
Syntax
Description
The Stateflow.Function method is a constructor method for creating functions in a parent chart, state, box, or function, that returns a handle to a Function object for the new function.
Arguments
parent |
Handle to parent chart or state of the new function |
Returns
function_new |
Handle to a Function object for the new function |
Example
If sA is a handle to a State object for the existing state A, the following command creates a new function parented (contained by) state A:
The new function is unnamed and appears in the upper left corner inside of state A in the diagram editor. function_new is a handle to the Function object for the new function that you use to rename the function, set its properties, and execute its methods.
| Stateflow.Event | Stateflow.Junction | ![]() |
© 1994-2005 The MathWorks, Inc.