필터 지우기
필터 지우기

pause/resume mechanism for very large computations?

조회 수: 4 (최근 30일)
Sven Larsen
Sven Larsen 2023년 4월 11일
답변: Sai Pallav 2023년 7월 6일
I am about to conduct extremely large computations (will take weeks to complete) and would like to implement somekind pause/resume mechanic in order to pause/stop computation and even shut down computer. then another time open up computer and continue work. I have already implemented result saving in specific computational intervals so thats not a problem. But all ideas how to invoke stop/resume (perhaps ui progress box with pause/resume dialog?) are very welcome.
Thanks in advance!
  댓글 수: 1
pragnan nadimatla
pragnan nadimatla 2023년 7월 4일
편집: Matt J 2023년 7월 4일
As per my understanding you want to perform computations with pause and resume mechanisms.
There is an inbuilt function in MATLAB called as waitbar which can help in performing lengthy calculation using pause/resume Mechanism.By dividing the computation into smaller tasks and saving the state periodically, you can minimize the amount of work that needs to be repeated if the computation is interrupted or if the computer crashes. Of course, you'll still need to save the final results of the computation once it's complete, but this can be done separately from the periodic state saves.
Please refer to the following documentation:

댓글을 달려면 로그인하십시오.

채택된 답변

Sai Pallav
Sai Pallav 2023년 7월 6일
Hi Sven,
I understand you need to automate the whole process of shutting down and restarting MATLAB. Here is another MATLAB answer which tackles a similar problem. I am also attaching a documentation on MATLAB start/exit commands which might be useful.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by