evalin
Evaluate MATLAB expression in data dictionary section
Description
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.
Examples
Input Arguments
Tips
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.
Version History
Introduced in R2015a