Main Content

getConfigSets

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

Description

example

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.

Examples

collapse all

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

Open the model sldemo_fuelsys_dd_controller and get the configuration object names.

sldemo_fuelsys_dd_controller
configObjNames = getConfigSets('sldemo_fuelsys_dd_controller')
configObjNames =

  1×1 cell array

    {'ModelReferencing'}

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: 'vdp'

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.

Introduced before R2006a