getValue
Return value of data dictionary entry
Description
returns the value of the data dictionary entry entryValue = getValue(entryObj)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
Return the value of data dictionary entry by using a Simulink.data.DataConnection object function.
dd = Simulink.data.connect("myDictionary_ex_API.sldd"); set(dd,"b",2); get(dd,"b")
ans =
2You can also get the value by using dot notation.
dd = Simulink.data.connect("myDictionary.sldd")
dd.b = 2;
dd.bans =
2Version History
Introduced in R2015a