removeControlVariable
Class: Simulink.VariantConfigurationData
Package: Simulink
Remove a control variable from a variant configuration
Syntax
vcdataObj.removeControlVariable(nameOfConfiguration,nameOfControlVariable)
Description
vcdataObj.removeControlVariable(
removes
a control variable from a variant configuration.nameOfConfiguration
,nameOfControlVariable
)
Input Arguments
|
Name of the variant configuration. |
|
Name of the control variable to be deleted. |
Examples
% Define the variant configuration data object vcdataObj = Simulink.VariantConfigurationData; % Add a variant configuration named LinInterExp vcdataObj.addConfiguration('LinInterExp',... 'Linear Internal Experimental Plant Controller'); % Add control variables SmartSensor1Mod and PlanLocation vcdataObj.addControlVariables('LinInterExp',... [struct('Name','SmartSensor1Mod','Value','2')]); % Remove the control variable SmartSensor1Mod % from the configuration LinInterExp vcdataObj.removeControlVariable('LinInterExp',... 'SmartSensor1Mod')