coder.dictionary.Section.find - Search in Embedded Coder Dictionary section - MATLAB (original) (raw)
Class: coder.dictionary.Section
Namespace: coder.dictionary
Search in Embedded Coder Dictionary section
Syntax
foundEntries = find(sectionObj,Name1,Value1,...,NameN,ValueN)
Description
[foundEntries](#mw%5F9efee29f-2db5-4793-951d-e6aaac70a9eb) = find([sectionObj](#mw%5F4e13b68e-3610-40a4-95b8-6c3222c06105),[Name1,Value1,...,NameN,ValueN](#mw%5F4a52952a-0e38-4daf-8c42-2b069450a24d))
searches the Embedded Coder Dictionary section sectionObj
by using search criteria Name1,Value1,…,NameN,ValueN
, and returns an array of matching entries that were found in that section.
Input Arguments
Search criteria, specified as one or more name-value pairs representing names and values of properties of the definitions in the Embedded Coder Dictionary section. For a list of the properties of an Embedded Coder Dictionary entry, see coder.dictionary.Entry.
Example: 'MemorySection','memSect1'
Example: 'DataScope','Exported'
Examples
Open the model RollAxisAutopilot
and create an Embedded Coder Dictionary in the model. Represent the Embedded Coder Dictionary by using thecoder.Dictionary
object coderDictionary
. Use this object to access the Storage Classes section of the dictionary, which contains the storage class definitions.
openExample('RollAxisAutopilot') coderDictionary = coder.dictionary.open('RollAxisAutopilot');
Create a coder.dictionary.Section
object that represents the Storage Classes section of the Embedded Coder Dictionary.
storageClassesSect = getSection(coderDictionary, 'StorageClasses');
Find the storage classes that have DataScope
set toExported
.
exportedSCs = find(storageClassesSect,'DataScope','Exported')
exportedSCs =
1×2 Entry array with properties:
Name
DataSource
Version History
Introduced in R2019b