MATLAB Object-Oriented Programming

(Joyce) #1
To determine if the class of a variable class is an enumeration class, use the meta.class
object.

today = WeekDays.Wednesday;
mc = metaclass(today);
mc.Enumeration

ans =

1

See Also


Related Examples



  • “Enumeration Class Restrictions” on page 14-27


14 Enumerations

Free download pdf