| Stateflow User's Guide | ![]() |
Constructor for creating a data
Syntax
Description
The Stateflow.Data method is a constructor method for creating data for a parent machine, chart, state, box, or function, that returns a handle to the Data object for the new data.
Arguments
parent |
Handle to an object for the parent machine, chart, state, box, or function of the new data |
Returns
data_new |
Handle to the Data object for the new data |
Example
If sA is a handle to a State object for an existing state A, the following command creates a new data parented (contained by) state A:
The new data is named 'data' with an incremented integer suffix to distinguish additional creations. data_new is a handle to the Data object for the new data.
| Stateflow.Box | Stateflow.EMFunction | ![]() |
© 1994-2005 The MathWorks, Inc.