文档帮助中心文档
查找由定义的枚举类万博1manbetxSimulink.defineIntEnumType
万博1manbetxSimulink.defineIntEnumType
结果= Simul万博1manbetxink.findIntEnumType (typeName)
结果= Simul万博1manbetxink.findIntEnumType ()
例子
结果= 万博1manbetxSimulink.findIntEnumType (typeName)返回meta.class对象的类类型定义为万博1manbetxSimulink.defineIntEnumType.使用返回的meta.class对象查询枚举类的属性。如果类不存在,则函数返回空值meta.class对象。
结果= 万博1manbetxSimulink.findIntEnumType (typeName)
结果
typeName
meta.class
类型
结果= 万博1manbetxSimulink.findIntEnumType ()返回meta.class定义的所有枚举类的万博1manbetxSimulink.defineIntEnumType.使用返回的meta.class对象来查询枚举类的属性。
结果= 万博1manbetxSimulink.findIntEnumType ()
全部折叠
定义枚举类型。
万博1manbetxSimulink.defineIntEnumType (“myEnumType”, {“e1”,“e2”}, (1 2));
检查已创建的枚举类型。
myResult = 万博1manbetxSimulink.findIntEnumType (“myEnumType”)
myResult = class with properties: Name: 'myEnumType' Description: " DetailedDescription: " Hidden: 0 Sealed: 0 Abstract: 0 Enumeration: 1 ConstructOnLoad: 0 handlecomcompatible: 0 inferorclasses: {[1×1 meta.class]} ContainingPackage: [0×0 meta.class][0×1 meta. package]方法列表:[150×1 meta. properties][0×1 meta. method]EnumerationMemberList: [2×1 meta. event]SuperclassList: [1×1 meta.class]
定义两种枚举类型。
万博1manbetxSimulink.defineIntEnumType (“myEnumType1”, {“e1”,“e2”}, (1 2));万博1manbetxSimulink.defineIntEnumType (“myEnumType2”, {“e3”,e4的}, [3 - 4]);
myResult = 万博1manbetxSimulink.findIntEnumType ()
由定义的特定枚举类的名称万博1manbetxSimulink.defineIntEnumType,指定为字符向量或字符串。
例子:“myEnumType”
“myEnumType”
数据类型:字符|字符串
字符
字符串
的数组返回的搜索结果meta.class对象。如果没有枚举类,则数组为空。
枚举|万博1manbetxSimulink.clearIntEnumType|万博1manbetxSimulink.defineIntEnumType
枚举
万博1manbetxSimulink.clearIntEnumType
你点击一个链接对应于这个MATLAB命令:
通过在MATLAB命令窗口中输入命令来运行命令。Web浏览器不支持MATLAB命令。万博1manbetx
选择一个网站,在那里获得翻译的内容,并看到当地的活动和优惠。根据您的位置,我们建议您选择:.
你也可以从以下列表中选择一个网站:
选择中国网站(中文或英文)以获得最佳网站性能。其他MathWorks国家站点没有针对您所在位置的访问进行优化。
与当地办事处联系