Class: Simulink.VariantConfigurationData
Package: Simulink
Remove a control variable from a variant configuration
vcdataObj.removeControlVariable(nameOfConfiguration,nameOfControlVariable)
vcdataObj.removeControlVariable(
removes
a control variable from a variant configuration.nameOfConfiguration
,nameOfControlVariable
)
|
Name of the variant configuration. |
|
Name of the control variable to be deleted. |
% 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')