Main Content

copy

Copy configuration set or reference

Description

example

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

Examples

collapse all

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

Get the active configuration set for your model.

openExample('simulink_general/VanDerPolOscillatorExample');
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.

attachConfigSet('vdp',develConfig);

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