assignin
Assign value to data dictionary entry
Description
assignin(
assigns the value sectionObj
,entryName
,entryValue
)entryValue
to the data dictionary entry
entryName
in the data dictionary section
sectionObj
, a Simulink.data.dictionary.Section
object. If an entry with the specified name is not in the target section,
assignin
creates the entry with the specified name and
value.
If an entry with the name specified by input argument entryName
is not defined in the target data dictionary section but is defined in a referenced
dictionary, assignin
does not create a new entry in the target
section but operates on the entry in the referenced dictionary.
To programmatically access variables for the purpose of sweeping block parameter
values, consider using Simulink.SimulationInput
objects instead of modifying the variables through the programmatic interface of the
data dictionary. See Optimize, Estimate, and Sweep Block Parameter Values.
Examples
Input Arguments
Alternatives
You can use the Model Explorer window to view and change the values of data dictionary entries.
Version History
Introduced in R2015a