if is possible to cancel a process if matlab take too much time to perfom the process?
2 ビュー (過去 30 日間)
古いコメントを表示
I have a for loop to analyse data,
for i=:length(data)
task(data(i));
end
but for example, if data has a length of 10,000 sometimes it got stuck at i=100 for more than one day. I cannot modify the function "task" therefore, I would like to know if there is a tool that stops the process of task at moment i=100 after a certain amount of time (let's say 90 min) so it can continues at i=101
Thanks
Cheers!
0 件のコメント
採用された回答
その他の回答 (1 件)
Swarooph
2017 年 5 月 19 日
編集済み: Swarooph
2017 年 5 月 19 日
Use Ctrl+C at the command prompt. Documentation here: https://www.mathworks.com/help/releases/R2017a/matlab/matlab_env/stop-execution.html
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!