Simulink.VariantManager.findVariantControlVars
Find variables used in variant control expressions
Syntax
Description
returns the variant control variables used by variant blocks and variant parameters in the
model vars
= Simulink.VariantManager.findVariantControlVars(model
)model
. If the variant control is a
Simulink.VariantExpression
object, then the variables are retrieved from
the variant condition within the object.
specifies whether to search in referenced models. By default, this search is enabled across
the model hierarchy.vars
= Simulink.VariantManager.findVariantControlVars(model
,'SearchReferencedModels',searchOpt
)
Note
To use this function, you must install the Variant Manager for Simulink® support package.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2015a