Main Content

removeConfiguration

Class: Simulink.VariantConfigurationData
Package: Simulink

Remove a variant configuration with a given name from the variant configuration data object

Syntax

vcdataObj.removeConfiguration(nameOfConfiguration)

Description

vcdataObj.removeConfiguration(nameOfConfiguration) removes the configuration from the variant configuration data object.

Input Arguments

nameOfConfiguration

Name of the configuration to be removed.

Examples

% Define the variant configuration data object
vcdataObj = Simulink.VariantConfigurationData;

% Add the LinInterExp variant configuration
% to the variant configuration data object
vcdataObj.addConfiguration('LinInterExp',...
  'Linear Internal Experimental Plant Controller'); 

% Remove the LinInterExp configuration
% from the variant configuration data object
vcdataObj.removeConfiguration('LinInterExp')