Main Content

addCopyOfConfiguration

Class: Simulink.VariantConfigurationData
Namespace: Simulink

Add copy of existing variant configuration to variant configuration data object

Description

Note

This method requires Variant Manager for Simulink®.

vcdataObj.addCopyOfConfiguration(oldConfig) adds a copy of an existing variant configuration to vcdataObj, which is an object of the Simulink.VariantConfigurationData class. This syntax gives the new configuration a default name based on the name of the configuration that is copied.

vcdataObj.addCopyOfConfiguration(oldConfig,newConfig) adds a copy of an existing variant configuration to the variant configuration data object and gives the specified name to the new configuration.

example

Input Arguments

expand all

Name of existing variant configuration to copy, specified as a string or a character vector. This configuration must exist in the variant configuration data object vcdataObj.

Example: "LinInterExpNoNoise"

Data Types: char | string

Name to be used for the copied configuration, specified as a string or a character vector.

Example: "LinInterExpNoise"

Data Types: char | string

Examples

expand all

Add a copy of the existing variant configuration LinInterExpNoNoise to vcdataObj and name the copy as LinInterExpNoise.

vcdataObj.addCopyOfConfiguration("LinInterExpNoNoise","LinInterExpNoise");

Version History

Introduced in R2013b