Skip to Main Content Skip to Search
Product Documentation

Stateflow.Data - Constructor for creating data

Syntax

data_new = Stateflow.Data(parent)

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

Examples

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:

data_new = Stateflow.Data(sA)

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.

  


Free Stateflow Interactive Kit

Learn how engineers use Stateflow to model state machines in their Simulink models.


Get free kit

Trials Available

Try the latest version of Stateflow.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS