Main Content


Get names of all of model's configuration sets or configuration references



myConfigObjNames = getConfigSets(model) returns the names of the configuration objects that are attached to the model. You can use the returned name of a configuration set from myConfigObjNames to activate it for the model.


collapse all

Get the names of the configuration sets and configuration references that are attached to a model.

Open the Using a Data Dictionary to Manage the Data for a Fuel Control System example model sldemo_fuelsys_dd and the referenced model sldemo_fuelsys_dd_controller. Get the configuration object names.

configObjNames = getConfigSets('sldemo_fuelsys_dd_controller')
configObjNames =

  1×1 cell array


The model has one configuration set with the name ModelReferencing.

Input Arguments

collapse all

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

Example: 'mymodel'

Output Arguments

collapse all

Names of the configuration objects that are attached to the model, returned as a cell array of character vectors. The configuration objects include configuration sets and configuration references.

Version History

Introduced before R2006a