Main Content

addCopyOfConfiguration

Class: Simulink.VariantConfigurationData
Package: Simulink

Add copy of existing variant configuration to VariantConfigurationData object

Description

Note

This method requires Variant Manager for Simulink®.

vcdataObj.addCopyOfConfiguration(nameofExistingConfig) 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.

example

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

Input Arguments

expand all

Name of the existing variant configuration that must be copied, specified as a character vector or string. 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 character vector or string.

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