Main Content

getAttribute

获取属性值

语法

att_value = h.getAttribute(att_name)

说明

att_value = h.getAttribute(att_name)coder.make.ToolchainInfo.Attributes 中返回特定属性的值。

输入参数

全部展开

使用对象句柄(如 h)指定的 coder.make.ToolchainInfo 对象。要创建 h,请在 MATLAB® 命令行窗口中输入 h = coder.make.ToolchainInfo

属性的名称,指定为字符向量或字符串标量。

数据类型: char | string

输出参量

全部展开

属性值。任何数据类型。

示例

h.Attribute
ans = 


# -------------------
# "Attribute" List
# -------------------
(empty)
h.addAttribute('TransformPathsWithSpaces',false)
h.getAttribute('TransformPathsWithSpaces')
ans  = 

     0

版本历史记录

在 R2013a 中推出