Main Content


Class: coder.dictionary.Section
Namespace: coder.dictionary

Return coder.dictionary.Entry object that represents an Embedded Coder Dictionary definition

Since R2019b


entryObj = getEntry(sectionObj,defName)


entryObj = getEntry(sectionObj,defName) returns a coder.dictionary.Entry object representing the Embedded Coder Dictionary definition that has the name defName found in the section sectionObj, a coder.dictionary.Section object.

Input Arguments

expand all

Embedded Coder Dictionary section containing the code definition, specified as a coder.dictionary.Section object. The section name identifies the type of code definition.

Name of Embedded Coder Dictionary definition, specified as a character vector or string scalar.

Example: 'StorageClass2'

Output Arguments

expand all

Embedded Coder Dictionary entry, returned as a coder.dictionary.Entry object. The entry represents the code definition in the Embedded Coder Dictionary section.


expand all

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, which contains the storage class definitions.

coderDictionary ='RollAxisAutopilot');

Create a coder.dictionary.Section object that represents the Storage Classes section of the Embedded Coder Dictionary.

storageClassesSect = getSection(coderDictionary, 'StorageClasses');

Represent the example storage class ParamStruct by using a coder.dictionary.Entry object.

entryObj = getEntry(storageClassesSect,'ParamStruct')
Entry with properties:

          Name: 'ParamStruct'
    DataSource: 'RollAxisAutopilot'

Version History

Introduced in R2019b