Simulink.data.existsInGlobal
Check existence of variable in context of Simulink model
Description
returns
an indication of the existence of a variable or data dictionary entry varExists
= Simulink.data.existsInGlobal(modelName
,varName
)varName
in
the context of the Simulink model modelName
. Simulink.data.existsInGlobal
searches
the Design Data section of the data dictionary that is linked to the
target model or the MATLAB base workspace if the target model is not
linked to any data dictionary.
Examples
Input Arguments
Output Arguments
Tips
existsInGlobal
helps you transition Simulink models to the use of data dictionaries. You can use the function to find model variables before and after linking a model to a data dictionary.
Alternatives
You can use Model Explorer to search a data dictionary or any workspace for entries or variables.
Version History
Introduced in R2015a