MATLAB: How to stop dde23 when one of states reach certain value

dde23

I want to stop dde23 when i am geeting 99% close to steady state and extract saturation time. I have written code of my system and then call dde23 to solve it. problem is am not able to terminate code when saturation is reached.

Best Answer

Use the "Events" option of dde23.
Best wishes
Torsten.