Skip to Main Content Skip to Search
Product Documentation

detachConfigSet - Dissociate configuration set or configuration reference from model

Syntax

detachConfigSet('model', 'configObjName')

Arguments

model

The name of an open model, or gcs to specify the current model

configObjName

The name of a configuration set (Simulink.ConfigSet) or configuration reference (Simulink.ConfigSetRef)

Description

detachConfigSet detaches the configuration set or configuration reference (configuration object) specified by 'configObjName' from model. If no such configuration object is attached to the model, an error occurs.

Examples

The following example detaches the configuration object named DevConfig from the current model. The code is the same whether DevConfig is a configuration set or configuration reference.

detachConfigSet(gcs, 'DevConfig');

See Also

attachConfigSet | attachConfigSetCopy | closeDialog | getActiveConfigSet | getConfigSet | getConfigSets | openDialog | setActiveConfigSet

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS