deleteEntry
Class: coder.dictionary.Section
Namespace: coder.dictionary
Delete Embedded Coder Dictionary entry
Syntax
deleteEntry(sectionObj,defName)
Description
deleteEntry(
deletes an Embedded Coder Dictionary definition that has the name sectionObj
,defName
)defName
from the section sectionObj
, a coder.dictionary.Section
object.
Input Arguments
sectionObj
— Embedded Coder Dictionary section
coder.dictionary.Section
object
Section in the Embedded Coder Dictionary that contains its definition, specified as
a coder.dictionary.Section
object.
Examples
Delete Storage Class from Embedded Coder Dictionary
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.
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')
storageClassesSect = Section with properties: Name: 'StorageClasses'
Get a list of the storage class definitions in the section. Use the find
method to get the
coder.dictionary.Entry
objects in the section. Then, use the get
method to list the
names of the definitions that the entries represent.
entryObjects = find(coderDictionary, 'StorageClasses'); get(entryObjects,'Name')
ans = 1×19 cell array Columns 1 through 4 {'ExportedGlobal'} {'ImportedExtern'} {'ImportedExternP…'} {'BitField'} Columns 5 through 9 {'Const'} {'Volatile'} {'ConstVolatile'} {'Define'} {'ImportedDefine'} Columns 10 through 13 {'ExportToFile'} {'ImportFromFile'} {'FileScope'} {'Localizable'} Columns 14 through 18 {'Struct'} {'GetSet'} {'CompilerFlag'} {'Reusable'} {'SignalStruct'} Column 19 {'ParamStruct'}
Remove the example storage class ParamStruct
from the
dictionary.
deleteEntry(storageClassesSect,'ParamStruct');
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 (한국어)