get
Class: coder.dictionary.Entry
Namespace: coder.dictionary
Get value of code definition property
Syntax
propValue = get(entryObj,propName)
Description
returns the value of the property propValue
= get(entryObj
,propName
)propName
for the code definition that
entryObj
represents.
Input Arguments
entryObj
— Embedded Coder Dictionary entry
coder.dictionary.Entry
object
Embedded Coder Dictionary entry that represents the code definition, specified as a
coder.dictionary.Entry
object. Before you use this function, represent the
code definition by using a coder.dictionary.Entry
object. Use, for
example, the addEntry
function.
propName
— property name
character vector | string scalar
Property of code definition, specified as a character vector or string scalar.
Output Arguments
propValue
— property value
string | coder.dictionary.Entry
object
Value of the property propName
for the code definition that
entryObj
represents, returned as a string or a
coder.dictionary.Entry
object. For storage classes and function
customization templates, the MemorySection
property can have a value
that is a coder.dictionary.Entry
object representing a memory section
definition.
Examples
Return Property Value of Storage Class Definition
Open the model RollAxisAutopilot
and represent the Embedded Coder
Dictionary by using a coder.Dictionary
object. Use this object to
access the Storage Classes section of the dictionary and represent the section with a
coder.dictionary.Section
object.
openExample('RollAxisAutopilot') coderDictionary = coder.dictionary.open('RollAxisAutopilot'); storageClassesSect = getSection(coderDictionary, 'StorageClasses');
Represent the example storage class ParamStruct
by using a
coder.dictionary.Entry
object.
entryObj = getEntry(storageClassesSect,'ParamStruct');
Return the value of the DataInit
property of the storage class
definition. This storage class uses static data initialization.
dataInitVal = get(entryObj,'DataInit')
dataInitVal = 'Static'
Version History
Introduced in R2019b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)