Evaluate MATLAB expression in data dictionary section
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.