[m,s] = enumeration(___)
returns the enumeration members in the column vector m and the
member names in the cell array s. The names in
s correspond element-wise to the enumeration members in
m.
An enumeration class that derives from a built-in class can specify more
than one name for a given enumeration member.
When you call the enumeration function with no output
arguments, MATLAB displays only the first name for each enumeration member (as
specified in the class definition). To see all available enumeration members
and their names, use the two output arguments. For example, [m,s] =
enumeration(obj);.
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.