Main Content
Find Variant Control Variables for Model
This example shows how to find the variant control variables used in a model.
Open the model slexVariantManagement
.
model = 'slexVariantManagement';
open_system(model);
Find the variant control variables.
vars = Simulink.VariantManager.findVariantControlVars(model)
vars=7×1 struct array with fields:
Name
Value
Exists
Source
SourceType