Main Content

.NET Enumerations in MATLAB

R2026b
Work with .NET enumerations in MATLAB®

MATLAB allows you to work with .NET enumerations using features of the MATLAB enumeration class and some features unique to .NET.

.NET enumerations contain members, methods inherited from System.Enum, and underlying numeric values. Terms you should know:

  • Enumeration — A .NET type that defines a finite set of named constants.

  • Enumeration member — Named constant of a .NET enumeration.

  • Underlying value — Numeric value associated with an enumeration member.

Note

MATLAB also supports user-defined enumeration classes, which are distinct from .NET enumerations. For more information, see Enumerations.

Functions

bitnot Bitwise NOT method for .NET enumerations

Topics