https://technicalsource9.medium.com/how-do-i-freeze-a-simulation-in-simulink-close-matlab-540a088ead56