Class: Simulink.VariantConfigurationData
Package: Simulink
Add control variables to an existing variant configuration
vcdataObj.addControlVariables(nameOfConfiguration,controlVars)
vcdataObj.addControlVariables(
,
adds control variables to a variant configuration.nameOfConfiguration
,controlVars
)
|
Specifies the name of an existing configuration. |
|
Control variables being added. This argument must be a vector
of structures with required fields: |
% 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',... cell2struct({'SmartSensor1Mod', '2';... 'PlantLocation', '1'},... {'Name', 'Value'}, 2))