Main Content

Simulink.Mask.EnumerationBase

Derive an enumeration class to hold numeric values of any datatype

Description

The members of the enumeration class derived from Simulink.Mask.EnumerationBase can hold values of any numeric datatype. The datatype of the enumeration members should be consistent.

Methods

expand all

Examples

Derive an enumeration class from Simulink.Mask.EnumerationBase

classdef  XFactor < Simulink.Mask.EnumerationBase
    enumeration
        alpha(.001, 'alpha (.001)')
        beta(.0001,  'beta (.0001)')
        gamma(.00001, 'gamma (.00001)')
    end
    

Introduced in R2021a