How do I guarantee to interrupt a running a script?

조회 수: 4 (최근 30일)
Martin
Martin 2015년 8월 28일
댓글: Walter Roberson 2015년 8월 28일
When a MATLAB script is running, it is usually possible to interrupt the script by typing Ctrl-C, but not always. Sometimes MATLAB will not respond to Ctrl-C. Is there some way to get MATLAB to always respond to Ctrl-C or is there another key combination which will always interrupt a MATLAB script?

채택된 답변

Guillaume
Guillaume 2015년 8월 28일
There isn't any way (short of quitting matlab) and the architecture of matlab would have to change for it to be possible as it requires multithreading.
  댓글 수: 2
Martin
Martin 2015년 8월 28일
Swell. I guess I need to make sure I save intermediate results to disk more often.
Walter Roberson
Walter Roberson 2015년 8월 28일
Intensive calculations on sufficiently large arrays are handled by calling external high-performance libraries of compiled code that are not written in MATLAB. There is no way of interrupting those routines short of killing the process (or possibly it would respond to a Signal if you are on a Unix-type system.)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Objects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by