主要内容

deleteEntry

删除 Embedded Coder 字典条目

语法

deleteEntry(entryObj)

说明

deleteEntry(entryObj) 删除条目 entryObj 所表示的 Embedded Coder 字典定义。

输入参数

全部展开

Embedded Coder 字典条目,指定为 coder.dictionary.Entry 对象。

示例

全部展开

打开模型 RollAxisAutopilot,并使用 coder.Dictionary 对象表示 Embedded Coder 字典。使用此对象访问字典的存储类分区,并使用 coder.dictionary.Section 对象表示该分区。

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

使用 coder.dictionary.Entry 对象表示示例存储类 ParamStruct

entryObj = getEntry(storageClassesSect,'ParamStruct');

删除 ParamStruct 存储类。

deleteEntry(entryObj)

版本历史记录

在 R2019b 中推出