%% Find Variant Control Variables for a Model
%
% Open the model slexVariantManagement.

cd(fullfile(matlabroot,'examples','simulink_variants','main'));
model = 'slexVariantManagement';
open_system(model); 

% Find the variant control variables.

vars = Simulink.VariantManager.findVariantControlVars(model)

% Copyright 2020 The MathWorks, Inc.