exist
Check existence of data dictionary entry
Description
determines if the data dictionary section doesExist = exist(sectionObj,entryName)sectionObj contains
an entry by the name of entryName and returns an
indication.
Examples
Input Arguments
Output Arguments
Tips
existalso determines if a matching entry exists in the same section of any referenced data dictionaries. For example, ifsectionObjrepresents the Design Data section of a data dictionarymyDictionary_ex_API.sldd,existsearches the Design Data section ofmyDictionary_ex_API.slddand the Design Data sections of any dictionaries referenced bymyDictionary_ex_API.sldd.
Alternatives
Determine if specified variables exist in a data dictionary by using a
Simulink.data.DataConnectionobject function.dd = Simulink.data.connect("myDictionary.sldd"); dd.a = 1; dd.c = 3; exist(dd,["a" "b" "c"])
ans = 1×3 logical array 1 0 1
You can use Model Explorer to search a data dictionary for an entry.
Version History
Introduced in R2015a