Class: Simulink.data.dictionary.Section
Package: Simulink.data.dictionary
Add new entry to data dictionary section
addEntry(sectionObj,entryName,entryValue)
entryObj = addEntry(sectionObj,entryName,entryValue)
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.
addEntry
returns an error if the
entry name you specify with entryName
is already
the name of an entry in the target data dictionary section or in the
same section of any referenced dictionaries.
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.