https://fr.mathworks.com/help/driving/ref/roadrunner.getscenariovariable.html
getScenarioVariable - Get the value of RoadRunner scenario variable using MATLAB - MATLAB
This MATLAB function returns the value of a variable in the current scenario with the specified name.
get thevalueroadrunnerscenariovariable