Main Content

hide

Remove data dictionary from Model Explorer

Description

example

hide(dictionaryObj)removes the data dictionarydictionaryObjfrom theModel Hierarchypane of Model Explorer. The target dictionary no longer appears as a node in the model hierarchy tree. Use this function when you are finished working with a data dictionary and want to reduce clutter in the Model Explorer.

Examples

collapse all

Open the data dictionarymyDictionary_ex_API.slddand represent it with aSimulink.data.Dictionaryobject namedmyDictionaryObj.

myDictionaryObj = Simulink.data.dictionary.open('myDictionary_ex_API.sldd');

Open Model Explorer and display the new data dictionary as the selected tree node in theModel Hierarchypane.

show(myDictionaryObj)

With Model Explorer open, at the MATLAB command prompt, call thehidefunction to observe the removal ofmyDictionary_ex_API.slddfrom the model hierarchy tree.

hide(myDictionaryObj)

Input Arguments

collapse all

Target data dictionary, specified as aSimulink.data.Dictionaryobject. Before you use this function, represent the target dictionary with aSimulink.data.Dictionaryobject by using, for example, theSimulink.data.dictionary.createorSimulink.data.dictionary.openfunction.

Tips

  • To add a data dictionary as a node in the model hierarchy tree in Model Explorer, use theshowfunction or use the interface to open and view the dictionary in Model Explorer.

  • Thehidefunction does not affect the content of the target dictionary.

Alternatives

You can remove a data dictionary from theModel Hierarchypane of Model Explorer by right-clicking the dictionary tree node and selectingClose.

Introduced in R2015a