I have a MATLAB file function or script that executes a loop many times. When debugging the application, I occasionally need to stop execution before it completes all the iterations of the loop. In MATLAB 6.5 (R13) and earlier versions, Ctrl-C consistently stopped execution of MATLAB functions. In MATLAB 7.0 (R14), Ctrl-C seems to work less frequently.
MATLAB: Is Ctrl-C inconsistent in breaking out of loops in MATLAB 7.0 (R14)
breakcctrldrawnoweventexecutionloopMATLABqueuestop
Best Answer