How to abort a running program in MATLAB?

Lazer picture Lazer · Sep 30, 2009 · Viewed 53.7k times · Source

Sometimes after calling a function (which takes some 30 odd minutes to finish), you realize that you did something wrong and want to stop the program.

How do you do that in MATLAB?

What I do is shutdown MATLAB completely and restart. I think there would be a way to abort the execution of the function instead.

Anybody know what that is?

Answer

gnovice picture gnovice · Sep 30, 2009

Hitting Ctrl + C usually does the trick, although sometimes it has been known to run into snags.