Main Content

addCloneToIgnoreList

Class: Simulink.CloneDetection.ReplacementConfig
Package: Simulink.CloneDetection

Add subsystem to clone replacement ignore list

Syntax

cloneReplacementSettings.addCloneToIgnoreList(subsystemName)

Description

cloneReplacementSettings.addCloneToIgnoreList(subsystemName) adds the specified subsystem name to the clone replacement ignore list associated with the CloneReplacementSettings object.

Input Arguments

expand all

Name of the subsystem, specified as a character vector.

Examples

expand all

  • cloneReplacementConfig = Simulink.CloneDetection.ReplacementConfig();
    cloneReplacementConfig.addCloneToIgnoreList('ex_clone_detection_E/Subsystem1');
    
    cloneReplacementConfig = 
    
      ReplacementConfig with properties:
        LibraryNameToAddSubsystemsTo: 'newLibraryFile'
                       IgnoredClones: {'ex_clone_detection_E/Subsystem1'}