Class: Simulink.data.dictionary.Section
Package: Simulink.data.dictionary
Evaluate MATLAB expression in data dictionary section
returnValue = evalin(sectionObj,expression)
evaluates
a MATLAB expression in the data dictionary section returnValue
= evalin(sectionObj
,expression
)sectionObj
and
returns the values returned by expression
.
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.
evalin
allows you to treat a data
dictionary section as a MATLAB workspace. You can think of entries
contained in the section as workspace variables you can manipulate
with MATLAB expressions.