Main Content

hide

Remove data dictionary from Model Explorer

Description

example

hide(dictionaryObj) removes the data dictionary dictionaryObj from the Model Hierarchy pane 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 dictionary myDictionary_ex_API.sldd and represent it with a Simulink.data.Dictionary object named myDictionaryObj.

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

Open Model Explorer and display the new data dictionary as the selected tree node in the Model Hierarchy pane.

show(myDictionaryObj)

With Model Explorer open, at the MATLAB command prompt, call the hide function to observe the removal of myDictionary_ex_API.sldd from the model hierarchy tree.

hide(myDictionaryObj)

Input Arguments

collapse all

Target data dictionary, specified as a Simulink.data.Dictionary object. Before you use this function, represent the target dictionary with a Simulink.data.Dictionary object by using, for example, the Simulink.data.dictionary.create or Simulink.data.dictionary.open function.

Tips

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

  • The hide function does not affect the content of the target dictionary.

Alternatives

You can remove a data dictionary from the Model Hierarchy pane of Model Explorer by right-clicking the dictionary tree node and selecting Close.

Introduced in R2015a