Main Content

removeControlVariable

Class: Simulink.VariantConfigurationData
Namespace: Simulink

Remove variant control variable from variant configuration

Description

Note

This method requires Variant Manager for Simulink®.

vcdataObj.removeControlVariable(configName,nameOfControlVariable) removes the specified variant control variable from the specified variant configuration in vcdataObj, which is an object of the Simulink.VariantConfigurationData class.

example

Input Arguments

expand all

Name of the variant configuration from which the control variable must be removed, specified as a character vector or string. The configuration name must be present in the variant configuration data object.

Example: "LinInterExpNoNoise"

Data Types: char | string

Name of the control variable to be removed from the variant configuration, specified as a character vector or string.

Example: "PlantLoc"

Data Types: char | string

Examples

expand all

Remove a control variable named PlantLoc from the variant configuration LinInterExpNoNoise.

vcdataObj.removeControlVariable("LinInterExpNoNoise","PlantLoc");

Version History

Introduced in R2013b