Main Content

getConfigSet

Get configuration set or configuration reference from model

Description

example

myConfigObj = getConfigSet(model, configObjName) returns the configuration set or configuration reference that is attached to model and is named configObjName.

Examples

collapse all

Get a configuration set for a model that is open.

Open the model vdp and get the configuration set Configuration.

vdp
vdpConfig = getConfigSet('vdp','Configuration');

Input Arguments

collapse all

Name of model, specified as a character vector or string scalar. The model must be open.

Example: 'vdp'

Name of the configuration object, specified as a character vector or string scalar.

Example: 'Configuration'

Output Arguments

collapse all

The configuration object, returned as a ConfigSet object or a Simulink.ConfigSetRef object. If no such object exists, the function returns an empty object.

Introduced before R2006a