我想在MATLAB中获取枚举内所有项的数组值。有没有函数可以让我这样做?
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
同时您也可以在MathWorks网站观看出色的视频教程,链接为http://www.mathworks.com/videos/matlab/enumerations-in-r2010b.html
enumeration('EnumName')
而不是 enumeration(EnumName)
。 - Alex Hirzel