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
Description
When you use the function importEnumTypes
to
import the definitions of enumerated types to a data dictionary, Simulink® creates
a Simulink.data.dictionary.EnumTypeDefinition
object
in the dictionary for each imported definition. The dictionary stores
each object in an individual entry.
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.