Main Content

Simulink.CloneDetection.highlightClone

Highlight clone in a Simulink model

Since R2021b

Description

example

Simulink.CloneDetection.highlightClone(cloneResults, subsystem) opens the Simulink model used in findClones function and highlights the subsystem specified. If the specified model is not open, this command opens it.

Examples

collapse all

Simulink.CloneDetection.highlightClone(cloneResults, 'ex_detect_clones/Subsystem')

Simulink canvas with clone subsystem highlighted

Input Arguments

collapse all

Results of a find clones operation, specified as a Simulink.CloneDetection.Results object.

Subsystem path in a model, specified as a character vector.

Version History

Introduced in R2021b