Documentation

getConfigSet

Get one of model's configuration sets or configuration references

Syntax

myConfigObj= getConfigSet(model,configObjName)

Arguments

model

The name of an open model, orgcsto specify the current model

configObjName

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

Description

getConfigSetreturns the configuration set or configuration reference (configuration object) that is attached tomodeland is namedconfigObjName. If no such object exists, the function returns an empty object.

Examples

The following example returns the configuration object that is namedDevConfigand attached to the current model. The code is the same whetherDevConfigis a configuration set or configuration reference.

myConfigObj = getConfigSet(gcs, 'DevConfig');

Introduced before R2006a