(1) I can see you are working with the example below.
(2) The plot itself is complicated and it would be hard to compare by overlapping signals in the same figure. In my humble opinion, it would be better (or may be recommended) to use different figures to compare the result. This is exactly how it is done in the example as well. The author uses scenario names to set up environment and plot results in new figures. For example,
helperSLAEBSetup(scenarioFcnName="scenario_25_AEB_PedestrianTurning_Nearside_10kph");
sim("AEBTestBench");
helperPlotAEBResults(logsout,scenarioFcnName);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1658211/image.png)
and
helperSLAEBSetup(scenarioFcnName="scenario_23_AEB_PedestrianChild_Nearside_50width");
sim("AEBTestBench");
helperPlotAEBResults(logsout,scenarioFcnName);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1658216/image.png)
(3) Another way is to use the result logs called "logsout". You can keep them by parameters for comparison.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1658221/image.png)
Hope this helps.