Main Content

close

Close connection between data dictionary and Simulink.data.Dictionary object

Description

example

close(dictionaryObj) closes the connection between the Simulink.data.Dictionary object dictionaryObj and the data dictionary it represents. dictionaryObj remains as a Simulink.data.Dictionary object but no longer represents any data dictionary.

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');

Remove connection between myDictionaryObj and myDictionary_ex_API.sldd.

close(myDictionaryObj);

Input Arguments

collapse all

Target Simulink.data.Dictionary object, specified as a handle to the object.

Tips

  • Use the close function in a custom MATLAB function to disassociate a Simulink.data.Dictionary object from a data dictionary. Custom MATLAB functions can create and store variables and objects in function workspaces but cannot delete those variables and objects.

  • The close function does not affect the content or the state of the represented data dictionary. The function does not discard unsaved changes to the represented dictionary or entries. You can save or discard them later.

Introduced in R2015a