Main Content

isAttribute

Class: coder.make.ToolchainInfo
Namespace: coder.make

Determine if attribute exists

Syntax

truefalse = h.isAttribute(att_name)

Description

truefalse = h.isAttribute(att_name) returns a logical value that indicates whether the specified attribute is a member of coder.make.ToolchainInfo.Attributes.

Input Arguments

expand all

A coder.make.ToolchainInfo object, specified using an object handle, such as h. To create h, enter h = coder.make.ToolchainInfo in a MATLAB® Command Window.

Name of attribute, specified as a character vector or string scalar.

Data Types: char | string

Output Arguments

expand all

Logical value: 0 = false, 1 = true, specified as a logical value.

Data Types: logical

Examples

h.addAttribute('FirstAttribute')
truefalse = h.isAttribute('FirstAttribute')
truefalse  = 

     1

Version History

Introduced in R2013a