Class: Simulink.VariantConfigurationData
Package: Simulink
Remove from a variant configuration, the configuration to be used for a sub model.
vcdataObj.removeSubModelConfiguration(nameOfConfiguration,nameOfSubModel)
vcdataObj.removeSubModelConfiguration(
,
removes the configuration specified for a submodel.nameOfConfiguration
,nameOfSubModel
)
|
Name of the submodel configuration to be removed. |
|
Name of the submodel from which the configuration must be removed. |
Add the path to the model file.
addpath(fullfile(docroot,'toolbox','simulink','examples'));
Load the model.
load_system('slexVariantManagement');
Add a new submodel configuration to LinInterExpNoNoise
.
vcdataObj.addSubModelConfigurations('LinInterExpNoNoise',... [struct('ModelName','slexVariantManagementExternalPlantMdlRef',... 'ConfigurationName', 'LowFid')]);
Remove the submodel configuration LinInterExpNoNoise
from the
submodel slexVariantManagementExternalPlantMdlRef
.
vcdataObj.removeSubModelConfiguration('LinInterExpNoNoise',... 'slexVariantManagementExternalPlantMdlRef')