Main Content

close

Close open connections to Simulink interface dictionary

Since R2022b

Description

close(dictObj) closes the open connections to the interface dictionary. If the dictionary has unsaved changes, an error is thrown.

example

close(dictObj, 'DiscardChanges', true) closes the connections to the interface dictionary and discards any unsaved changes.

Examples

collapse all

To close the open connections to the interface dictionary, use the close function.

close(dictObj);

Input Arguments

collapse all

Interface dictionary, specified as a Simulink.interface.Dictionary object. Before you use this function, create or open dictObj by using Simulink.interface.dictionary.create or Simulink.interface.dictionary.open.

Version History

Introduced in R2022b

expand all