Terminate function after 5 minutes
显示 更早的评论
I am trying to set up an experiment in Matlab I have made a function which when executed will ask the user a number of questions. Now the problem is, that i want this function to run for exactly 5 minutes, and not depend of how many questions have been answered.
I have been looking at the timer function in matlab, but i cannot figure out if it can be used, and how.
回答(1 个)
Jon
2015-9-28
0 个投票
Using Google, I found this: http://www.mathworks.com/matlabcentral/answers/20237-time-dependent-programs
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!