How to stop a program after a given time input?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
Daniel Shub
2013년 5월 14일
It really depends on what your code is doing. How exactly do you want it to "stop". Do you want MATLAB to exit?
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!