This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Get one of model's configuration sets or configuration references


myConfigObj = getConfigSet(model, configObjName)



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


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


getConfigSet returns the configuration set or configuration reference (configuration object) that is attached to model and is named configObjName. If no such object exists, an error occurs.


The following example returns the configuration object that is named DevConfig and attached to the current model. The code is the same whether DevConfig is a configuration set or configuration reference.

 myConfigObj = getConfigSet(gcs, 'DevConfig');

Introduced before R2006a

Was this topic helpful?