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!