removeControlVariable

Class: Simulink.VariantConfigurationData
Package: Simulink

Remove a control variable from a variant configuration

Syntax

vcdataObj.removeControlVariable(nameOfConfiguration,nameOfControlVariable)

Description

vcdataObj.removeControlVariable(nameOfConfiguration,nameOfControlVariable) removes a control variable from a variant configuration.

Input Arguments

nameOfConfiguration

Name of the variant configuration.

nameOfControlVariable

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')