Simulink.Mask.EnumerationTypeOptions class
Parse information from enumeration file derived from
Simulink.IntEnumType
and
Simulink.Mask.EnumerationBase
Since R2021a
Description
Create an instance of Simulink.Mask.EnumerationTypeOptions
to parse the
information from the enumeration file into the object.
Creation
enumObj =
Simulink.Mask.EnumerationTypeOptions('ExternalEnumerationClass', 'XFactor'
)
Properties
Examples
Display the properties of the enumeration members
>> obj = Simulink.Mask.EnumerationTypeOptions ('ExternalEnumerationClass', 'XFactor')
obj = EnumerationTypeOptions with properties: ExternalEnumerationClass: 'XFactor' EnumerationMembers: [1x3 Simulink.Mask.EnumerationMember]
>> obj.EnumerationMembers(1)
ans = EnumerationMember with properties: MemberName: 'alpha' DescriptiveName: 'alpha (.001)' Value: 1.0000e-03
Note
The properties are read only. You can modify the enumeration file to change the properties of the enumeration members .
Version History
Introduced in R2021a