MATLAB:如何获得枚举的所有项的数组?
我想在MATLAB中获得枚举中所有项的数组值?有什么函数允许我这样做吗?假设您谈论的是MATLAB枚举对象(而不是java.lang.Enumeration),您可以使用“Enumeration”函数获取枚举成员列表。从MATLAB文档,在MATLAB:如何获得枚举的所有项的数组?,matlab,Matlab,我想在MATLAB中获得枚举中所有项的数组值?有什么函数允许我这样做吗?假设您谈论的是MATLAB枚举对象(而不是java.lang.Enumeration),您可以使用“Enumeration”函数获取枚举成员列表。从MATLAB文档,在 另请参见MathWorks网站上的优秀视频教程,网址为您可以发布一个您所问问题的示例吗?我想指出的是,您应该使用枚举('EnumName'),而不是枚举(EnumName)。 m = enumeration(ClassName) returns the en
另请参见MathWorks网站上的优秀视频教程,网址为您可以发布一个您所问问题的示例吗?我想指出的是,您应该使用
枚举('EnumName')
,而不是枚举(EnumName)
。
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