addSubModelConfigurations
Class: Simulink.VariantConfigurationData
Package: Simulink
Add to a variant configuration the names of the configurations to be used for submodels
Syntax
vcdataObj.addSubModelConfigurations(nameOfConfiguration,subModelConfigurations)
Description
vcdataObj.addSubModelConfigurations(
,
specifies names of the configurations to be used for submodels.nameOfConfiguration
,subModelConfigurations
)
Input Arguments
|
Name for the configuration of submodels that are model references. |
|
Vector of structures containing fields: |
Examples
Add the path to the model file.
addpath(fullfile(matlabroot,'examples','simulink_variants','main'));
Load the model.
load_system('slexVariantManagement');
Obtain variant configuration data object for the model.
vcdataObj = Simulink.VariantConfigurationData.getFor('slexVariantManagement');
Add a new submodel configuration to
LinInterExpNoNoise
.vcdataObj.addSubModelConfigurations('LinInterExpNoNoise',... [struct('ModelName', 'slexVariantManagementExternalPlantMdlRef',... 'ConfigurationName', 'LowFid')])