copy

Copy a configuration set

Description

example

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

Examples

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.

attachConfigSet('vdp',develConfig);

Input Arguments

collapse all

Configuration set object to copy, specified as a ConfigSet object.

Output Arguments

collapse all

A copy of the configuration set, specified as a ConfigSet object.

Introduced before R2006a