https://in.mathworks.com/help/simulink/slref/simulink.simulationinput.getvariantconfiguration.html
getVariantConfiguration - Get name of variant configuration from SimulationInput object - MATLAB
This MATLAB function returns the name of the variant configuration set in the Simulink.SimulationInput object simin.
get namevariantconfigurationobjectmatlab