how to continue the program?
조회 수: 8 (최근 30일)
이전 댓글 표시
Hai,
While running the program, I pressed ctrl+c to halt the program. I want the program to run from where it had halted. How could I do this? Looking for your reply.
BSD
댓글 수: 0
답변 (3개)
Amardeep
2011년 10월 27일
Maybe try break points in your code easiest way to do it and then F5 continues from the break point
댓글 수: 0
Grzegorz Knor
2011년 10월 27일
Ctrl+C break the execution of the program and you can't continue after it.
Can you write why you need it for? Maybe there is another solution.
댓글 수: 0
Daniel Shub
2011년 10월 27일
If it is a script then you can just run the portion of the script that hasn't run. If it is a function, you are out of luck. You might be able to use a onCleanup function within your function to save the function state when a ctrl-c is issued, but I am not sure onCleanup runs when you press ctrl-c.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Performance and Memory에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!