Simulink.data.evalinGlobal
Evaluate MATLAB expression in context of Simulink model
Description
evaluates the MATLAB® expression returnValue
= Simulink.data.evalinGlobal(modelName
,expression
)expression
within the context of the
Simulink® model modelName
and returns the values returned by
expression
. The function evaluates the expression in the
following manner:
If a data dictionary is linked as an external data source to the model, the function evaluates the expression using data from the Design Data section of the dictionary.
If the model is not linked with any external data sources, the function evaluates the expression using data from the MATLAB base workspace.
If any MAT file is linked as an external data source to the model, the function reports an error.
Examples
Input Arguments
Output Arguments
Limitations
If a MAT file is linked as an external data source to the model, the function reports an error.
Alternatives
Use Simulink.data.resolveInGlobal
or Simulink.data.getVariableFromGlobal
.
Version History
Introduced in R2015a