addEntry
Add new entry to data dictionary section
Description
addEntry(
adds an entry, with name sectionObj
,entryName
,entryValue
)entryName
and value
entryValue
, to the data dictionary section
sectionObj
, a Simulink.data.dictionary.Section
object.
returns a entryObj
= addEntry(sectionObj
,entryName
,entryValue
)Simulink.data.dictionary.Entry
object representing the newly added data dictionary entry.
Examples
Input Arguments
Tips
addEntry
returns an error if the entry name you specify withentryName
is already the name of an entry in the target data dictionary section or in the same section of any referenced dictionaries.
Alternatives
You can use Model Explorer to add entries to a data dictionary in the same way you can use it to add variables to a model workspace or the base workspace.
Version History
Introduced in R2015a