Main Content

removeLibraries

Class: Simulink.CloneDetection.Settings
Namespace: Simulink.CloneDetection

Remove library

Syntax

cloneDetectionSettings = removeLibraries(cloneDetectionSettings,LibraryName)

Description

cloneDetectionSettings = removeLibraries(cloneDetectionSettings,LibraryName) removes the library file from cloneDetectionSettings object.

Input Arguments

expand all

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

Name of the library file, specified as a character vector.

Output Arguments

expand all

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

Examples

expand all

This example shows how to remove a library file from a cloneDetectionSettings object. Suppose the library file is clones_library.

Save the library file name, clones_library, to the variable libName.

libName = 'clones_library';

Remove the library file name from the clone detection settings.

removeLibraries(cloneDetectionSettings,libName);