Simulink.data.dictionary.EnumTypeDefinition
Store enumerated type definition in data dictionary
Description
A Simulink.data.dictionary.EnumTypeDefinition object defines
an enumerated data type in a data dictionary. You store the object in a data dictionary
entry so models linked to the dictionary can use the enumerated type
definition.
In the MATLAB® base workspace,
Simulink.data.dictionary.EnumTypeDefinition objects retain
information about an enumerated type but do not define the type for use by other
variables or by models.
Creation
You can create a Simulink.data.dictionary.EnumTypeDefinition object
several ways.
Interactively create a
Simulink.data.dictionary.EnumTypeDefinitionobject using the Type Editor or Model Explorer.Import the definitions of enumerated types to a data dictionary using the
importEnumTypesfunction. Simulink® creates aSimulink.data.dictionary.EnumTypeDefinitionobject in the dictionary for each imported definition. The dictionary stores each object in an individual entry.Programmatically create a
Simulink.data.dictionary.EnumTypeDefinitionobject using theSimulink.data.dictionary.EnumTypeDefinitionfunction described here.
Description
The Simulink.data.dictionary.EnumTypeDefinition function
creates a Simulink.data.dictionary.EnumTypeDefinition object
with default property values and a single enumeration member that has underlying
integer value 0.
Properties
Object Functions
appendEnumeral | Add enumeration member to enumerated data type definition in data dictionary |
removeEnumeral | Remove enumeration member from enumerated data type definition in data dictionary |
Examples
Alternatives
You can use Model Explorer to add and modify enumerated data types stored in a data dictionary.
Version History
Introduced in R2015a