% Variant control variable
VCtrl = Simulink.VariantControl('Value', 1, 'ActivationTime', 'code compile');

% Default storage classes
MAX_LIFT = Simulink.VariantVariable('Choices', {'VCtrl == 1', 10, 'VCtrl == 2', 20});
SLIDER_POS = Simulink.VariantVariable('Choices', {'VCtrl == 1', 0, 'VCtrl == 2', 0.5});

% non default storage class
Pspec = Simulink.Parameter();
Pspec.CoderInfo.StorageClass = 'ExportedGlobal';
T1Break = Simulink.VariantVariable('Specification', 'Pspec');
T1Break = addChoice(T1Break, {'VCtrl == 1', -5:5, 'VCtrl == 2', -10:2:10});

T1Data = Simulink.VariantVariable('Specification', 'Pspec');
T1Data = addChoice(T1Data, {'VCtrl == 1', [-1,-0.99,-0.98,-0.96,-0.76,0,0.76,0.96,0.98,0.99,1],...
    'VCtrl == 2', 2*[-1,-0.99,-0.98,-0.96,-0.76,0,0.76,0.96,0.98,0.99,1]});

T2Break = Simulink.VariantVariable('Specification', 'Pspec');
T2Break = addChoice(T2Break, {'VCtrl == 1', -10:10:10, 'VCtrl == 2', -20:20:20});

T2Data = Simulink.VariantVariable('Specification', 'Pspec');
T2Data = addChoice(T2Data, {'VCtrl == 1', [4 5 6;16 19 20;10 18 23],...
    'VCtrl == 2', 2*[4 5 6;16 19 20;10 18 23]});

