Check existence of variable in context of Simulink model
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.
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.
You can use Model Explorer to search a data dictionary or any workspace for entries or variables.