Stateflow User's Guide Previous page   Next Page

Typing Data by Using the Type of Other Data

You can specify the type of any Stateflow data with the type of other Stateflow data returned by the type operator. Once you build the model, the CompiledType column of the Model Explorer gives the actual type used in the compiled simulation application. In the following example, the Stateflow block local data y is typed by the expression type(x), where x is typed as an int32.


Previous page  Inheriting Input and Output Data Type from Simulink Typing Data by Using an Alias Next page

© 1994-2005 The MathWorks, Inc.