Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Define Complex Data Using the Editor

Define complex data in a chart as follows:

  1. In the Stateflow® Editor, select one of the following options:

    • Chart > Add Inputs & Outputs > Data Input From Simulink

    • Chart > Add Inputs & Outputs > Data Output To Simulink

    • Chart > Add Other Elements > Local Data

    A default definition of the new data object appears in the Stateflow hierarchy, and the Data properties dialog box appears.

      Note:   Complex data does not support the scope Constant.

  2. In the Complexity field of the Data properties dialog box, select On.

  3. Specify the name, size, base type, and other properties for the new data object as described in Set Data Properties.

      Note:   Complex data does not support the base types ml, struct, and boolean. See Built-In Data Types for more information.

  4. Click OK.

Was this topic helpful?