.NET Enumerations in MATLAB
R2026bMATLAB 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
- Use .NET Enumerations in MATLAB
How MATLAB represents .NET enumerations.
- Use Bit Flags with .NET Enumerations
This example shows how to combine members of an enumeration to create MATLAB variables.