Main Content


Remove Simulink interface dictionary reference from another interface dictionary

Since R2023a



removeReference(dictObj,refDict) removes an interface dictionary reference, specified by refDict, from the specified interface dictionary, dictObj.


collapse all

Remove referenced dictionaries ReferenceInterfaces1.sldd and ReferenceInterfaces2.sldd from the interface dictionary MyInterfaces.sldd.

Get the names of the referenced dictionaries.

dictAPI1 ='MyInterfaces.sldd');
refDicts = getReferences(dictAPI1)
refDicts =

  2×1 cell array


Remove the referenced dictionaries, using a dictionary object and character vector.

dictAPI2 ='ReferenceInterfaces1.sldd');

refDicts = getReferences(dictAPI1)
refDicts =

  0×1 empty cell array

Input Arguments

collapse all

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

Referenced interface dictionary, specified as a character vector, a string scalar, or a Simulink.interface.Dictionary object.

Example: 'ReferenceDictionary.sldd'

Version History

Introduced in R2023a