Main Content

removeFolders

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

Remove folder

Syntax

cloneDetectionSettings = cloneDetectionSettings.removeFolders(FolderName)

Description

cloneDetectionSettings = cloneDetectionSettings.removeFolders(FolderName) removes folder from cloneDetectionSettings object.

Input Arguments

expand all

Name of the folder, specified as a character vector.

Output Arguments

expand all

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

Examples

  • This example shows how to remove a folder from cloneDetectionSettings object which is already added. The folder name is Folder1.

FolderName = 'Folder1';
cloneDetectionSettings = cloneDetectionSettings.removeFolders(FolderName)
cloneDetectionSettings = 
  Settings with properties:
                            IgnoreSignalName: 0
                         IgnoreBlockProperty: 0
                      ExcludeModelReferences: 0
                         ExcludeLibraryLinks: 0
                      SelectedSystemBoundary: []
              FindClonesRecursivelyInFolders: 1
                    ParamDifferenceThreshold: 50
    ReplaceExactClonesWithSubsystemReference: 0
                                   Libraries: {}
                                     Folders: {}
                     DetectClonesAcrossModel: 0
                      ExcludeInactiveRegions: 0