Copy configuration set or reference
copyCs = copy(cs)
example
copyCs = copy(cs) returns a copy of a configuration set or configuration reference.
copyCs
cs
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);
ConfigSet
ConfigSetRef
Configuration set object to copy, specified as a ConfigSet object or a Simulink.ConfigSetRef object.
Simulink.ConfigSetRef
A copy of the configuration set, returned as a ConfigSet object or a ConfigSetRef object.