Main Content


Copy configuration set or reference



copyCs = copy(cs) returns a copy of a configuration set or configuration reference.


collapse all

Create a copy of a configuration set and attach it to a model.

Get the active configuration set for your model.

activeConfig = getActiveConfigSet ('vdp');

Copy the active configuration set.

develConfig = copy(activeConfig);

Give the copied configuration set a name.

develConfig.Name = 'develConfig';

Attach the new configuration set to the model.


Input Arguments

collapse all

Configuration set object to copy, specified as a ConfigSet object or a Simulink.ConfigSetRef object.

Output Arguments

collapse all

A copy of the configuration set, returned as a ConfigSet object or a ConfigSetRef object.

Version History

Introduced before R2006a