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');
Was this topic helpful?