User`s guide
External Interfaces/API
9-25
Compatibility Considerations
MATLAB displays an error when you use the enumeration command to return arrays
of .NET enumeration objects. To read enumeration members into MATLAB arrays, see
Refer to a .NET Enumeration Member.
MATLAB enumerations no longer inherit from the MATLAB int32 class.
You cannot create arrays of .NET enumeration objects. For example, if you type:
a = [EnumTest.Colors.Red EnumTest.Colors.Blue]
MATLAB displays:
??? Array formation and indexing are not allowed on .NET objects.
To combine members of an enumeration into a MATLAB variable, see Combining
Enumerations into a Single MATLAB Variable.
Support for Asynchronous .NET Delegate Callback Handling
You can use delegates to call a synchronous method asynchronously. See Calling a .NET
Method Asynchronously.