addLibraries
Class: Simulink.CloneDetection.Settings
Package: Simulink.CloneDetection
Add library with subsystems
Syntax
cloneDetectionSettings = cloneDetectionSettings.addLibraries(LibraryName)
Description
cloneDetectionSettings = cloneDetectionSettings.addLibraries(
adds library file to the LibraryName
)cloneDetectionSettings
object.
Input Arguments
Output Arguments
Examples
This example shows how to add a library file to
cloneDetectionSettings
object for matching the library subsystem clones. The library file isTestLib_1
.libName = 'TestLib_1'; cloneDetectionSettings = Simulink.CloneDetection.Settings(); cloneDetectionSettings = cloneDetectionSettings.addLibraries(libName);
cloneDetectionSettings = Settings with properties: IgnoreSignalName: 0 IgnoreBlockProperty: 0 ExcludeModelReferences: 0 ExcludeLibraryLinks: 0 ExcludeInactiveRegions: 0 ParamDifferenceThreshold: 50 ReplaceExactClonesWithSubsystemReference: 0 Libraries: {'C:\Users\Desktop\ex_clone_detection\TestLib_1.slx'}