https://nl.mathworks.com/help/simevents/ref/matlab.discreteeventsystem.canceldestroy.html
matlab.DiscreteEventSystem.cancelDestroy - Cancel previously scheduled entity destroy event - MATLAB
This MATLAB function cancels a previously scheduled destroy event of the current entity.
matlabcancelpreviouslyscheduledentity
https://se.mathworks.com/help/simevents/ref/matlab.discreteeventsystem.canceldestroy.html
matlab.DiscreteEventSystem.cancelDestroy - Cancel previously scheduled entity destroy event - MATLAB
This MATLAB function cancels a previously scheduled destroy event of the current entity.
matlabcancelpreviouslyscheduledentity