getControlVariable
R2026bSyntax
Description
returns the variant control variable named ctrlVar = getControlVariable(varConfigs,ConfigurationName=configName,ControlVariableName=ctrlVarName)ctrlVarName from the
configuration configName in the Simulink.VariantConfigurations object
varConfigs.
specifies the name of the data source where the control variable is defined, in addition
to the input arguments in the previous syntax. When multiple control variables with the
same name exist in different sources, use this syntax.ctrlVar = getControlVariable(___,ControlVariableSource=ctrlVarSource)
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2026b