Main Content

deleteEntry

Class: coder.dictionary.Entry
Package: coder.dictionary

Delete Embedded Coder Dictionary entry

Syntax

deleteEntry(entryObj)

Description

deleteEntry(entryObj) deletes an Embedded Coder Dictionary definition that the entry entryObj represents.

Input Arguments

expand all

Embedded Coder Dictionary entry, specified as a coder.dictionary.Entry object.

Examples

expand all

Open the model rtwdemo_roll 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 by using a coder.dictionary.Section object.

rtwdemo_roll
coderDictionary = coder.dictionary.open('rtwdemo_roll');
storageClassesSect = getSection(coderDictionary, 'StorageClasses');

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

entryObj = getEntry(storageClassesSect,'ParamStruct');

Delete the ParamStruct storage class.

deleteEntry(entryObj)
Introduced in R2019b