Define complex data in a chart as follows:
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.
In the Complexity field of the Data properties dialog box, select On.
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.