How to stop a program after a given time input?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I created a function in which one input is time in seconds. I want the program to stop after this time has passed. However, I am only aware of the tic toc and the cputime and I can't find out how to apply these in my situation. I hope you can help me.
1 Kommentar
Daniel Shub
am 14 Mai 2013
It really depends on what your code is doing. How exactly do you want it to "stop". Do you want MATLAB to exit?
Antworten (1)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!