Can I Use the Special Function Keys to Interrupt a Script?
이전 댓글 표시
Back in the old QuickBasic and early Visual Basic days I would write code that allow me to interrupt a running algorithm by pressing a special function key. Is there a similar function in today's Matlab?
Thanks,
Dave
채택된 답변
추가 답변 (1개)
Kye Taylor
2012년 8월 23일
0 개 추천
Ctrl+C will kill a running script/function
댓글 수: 2
David Koenig
2012년 8월 23일
Kye Taylor
2012년 8월 23일
Forgive me if you know about breakpoints and using the debugger, but you can place the command
keyboard
in a script, and it will pause execution of the script just like a breakpoint. Althought this requires knowing a priori where you want stop a scripts execution.
Another alternative is to set a conditional/error breakpoint that will pause execution when a condition is met that you specify.
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!