Main Content

Simulink.CloneDetection.ReplacementConfig Class

Namespace: Simulink.CloneDetection

Conditions for clone replacement function

Since R2021a

Description

Use object of the Simulink.CloneDetection.ReplacementConfig class to specify certain conditions when calling the Simulink.CloneDetection.replaceClones function.

Creation

Description

Simulink.CloneDetection.ReplacementConfig creates an object of the Simulink.CloneDetection.ReplacementConfig class.

Properties

expand all

Name of library to create, specified as a character vector.

Subsystems to ignore during clone replacement, specified as a character vector or an array of character vectors.

Methods

expand all

Examples

collapse all

This example shows to create and store clone replacement configuration information in a cloneReplacementConfig object and change the property of LibraryNameToAddSubsystemsTo to UserDefinedLibName.

 cloneReplacementConfig = Simulink.CloneDetection.ReplacementConfig('UserDefinedLibName');
cloneReplacementConfig = 

  ReplacementConfig with properties:

    LibraryNameToAddSubsystemsTo: 'UserDefinedLibName'
                   IgnoredClones: {}

Version History

Introduced in R2021a