- On the Modeling tab, open the Design section and click Variant Manager.
- In the Configurations tab, scroll down to see the Control Variables section. The section shows the name of the currently selected variant configuration.
- Click on the “Export control variables to workspace(s)” button.
- Get the variant configuration data object
- https://www.mathworks.com/help/simulink/slref/simulink.variantconfigurationdata.getconfiguration.html
- https://www.mathworks.com/help/simulink/slref/simulink.variantmanager.getconfigurationdata.html
- https://www.mathworks.com/help/simulink/var/create-activate-variant-configurations.html#:~:text=To%20export%20the%20control%20variables%20to%20the%20data%20sources%20where%20they%20are%20stored%2C%20click%20the%20Export%20control%20variables%20to%20workspace(s)%20button
- https://www.mathworks.com/help/matlab/ref/assignin.html