Main Content


Class: Simulink.CloneDetection.Settings
Package: Simulink.CloneDetection

Remove library


cloneDetectionSettings = cloneDetectionSettings.removeLibraries(LibraryName)


cloneDetectionSettings = cloneDetectionSettings.removeLibraries(LibraryName) removes library from cloneDetectionSettings object.

Input Arguments

expand all

Name of the library file, specified as a character vector.

Output Arguments

expand all

Clone Detection Settings, specified as a Simulink.CloneDetection.Settings object.


  • This example shows how to remove a library file from cloneDetectionSettings object which is already added. The library file is TestLib_1.

cloneDetectionSettings = cloneDetectionSettings.removeLibraries(libName)
cloneDetectionSettings = 
  Settings with properties:
                            IgnoreSignalName: 0
                         IgnoreBlockProperty: 0
                      ExcludeModelReferences: 0
                         ExcludeLibraryLinks: 0
                      ExcludeInactiveRegions: 0
                    ParamDifferenceThreshold: 50
    ReplaceExactClonesWithSubsystemReference: 0
                                   Libraries: {}