type
Type of Stateflow data object
Syntax
Description
type( returns the type of a
Stateflow® data object. Use the data_name)type operator to derive the type of
a Stateflow data object from other data objects.
In charts that use C as the action language, you can also use the return value in place
of an explicit type in a cast operation to convert the value of an
expression to the same type as another data object.
Tip
In charts that use MATLAB® as the action language, convert the value of an expression to the same
type as another data object by calling the cast function with the keyword "like". For more
information, see Cast Type Based on Other Data.
Examples
Input Arguments
Version History
Introduced before R2006a

