Класс: Simulink.CloneDetection.Settings
Пакет: Simulink.CloneDetection
Добавьте папки с моделями
cloneDetectionSettings = cloneDetectionSettings.addFolders(FolderName)
cloneDetectionSettings = cloneDetectionSettings.addFolders( добавляет путь к папке к FolderName)cloneDetectionSettings объект.
В этом примере показано, как добавить Папку в cloneDetectionSettings объект для нахождения клонов из моделей в папке. Именем папки является Folders1.
FolderName = 'Folders1';
cloneDetectionSettings = Simulink.CloneDetection.Settings();
cloneDetectionSettings = cloneDetectionSettings.addFolders(FolderName);
cloneDetectionSettings =
Settings with properties:
IgnoreSignalName: 0
IgnoreBlockProperty: 0
ExcludeModelReferences: 0
ExcludeLibraryLinks: 0
SelectedSystemBoundary: []
FindClonesRecursivelyInFolders: 1
ParamDifferenceThreshold: 50
ReplaceExactClonesWithSubsystemReference: 0
Libraries: {}
Folders: {'C:\Users\Folders1}
DetectClonesAcrossModel: 0
ExcludeInactiveRegions: 0