Main Content

Simulink.Mask.EnumerationBase Class

Derive an enumeration class to hold numeric values of any datatype

Since R2021a

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

collapse all

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

Version History

Introduced in R2021a