Simulink.data.existsInGlobal
Determine if variable exists in context of Simulink model
Description
determine if the variable tf
= Simulink.data.existsInGlobal(modelName
,varName
)varName
exists in the context of
the Simulink® model modelName
.
Simulink.data.existsInGlobal
searches the Design Data
section of the data dictionary and MAT files linked to the model as external
data sources, or the MATLAB® base workspace if the model is not linked to any external data
sources.
Examples
Input Arguments
Output Arguments
Alternatives
You can use Model Explorer to search for the variables.
Version History
Introduced in R2015a