setValue
Set value of data dictionary entry
Description
setValue(
assigns the value entryObj
,newValue
)newValue
to the data dictionary entry
entryObj
, a Simulink.data.dictionary.Entry
object.
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