假设您正在讨论MATLAB枚举对象(而不是java.lang.Enumeration),您可以使用"枚举"函数来获取枚举成员的列表.从MATLAB文档,http://www.mathworks.com/help/techdoc/ref/enumeration.html,
m = enumeration(ClassName) returns the enumeration members for the class in the column vector m of objects.
m = enumeration(obj) returns the enumeration members for the class of object, obj, in the column vector m of objects
Run Code Online (Sandbox Code Playgroud)
另请参阅MathWorks网站上的优秀视频教程,网址为http://www.mathworks.com/videos/matlab/enumerations-in-r2010b.html