Main Content

Enumerations

Fixed set of names representing a single type of value

Use enumerations to represent a fixed set of named values, where all the values are of the same kind. You can derive enumeration classes from other classes, such as built-in numeric types. The enumeration members then inherit arithmetic and ordering operations of the superclass.

Funktionen

enumerationClass enumeration members and names
isenumDetermine if variable is enumeration

Klassen

meta.EnumeratedValueDescribe enumeration member of MATLAB class

Themen

Define and Use Enumerations

Specialized Enumeration Classes

Verwandte Informationen