Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to abort a running program in MATLAB?

Tags:

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?

like image 900
Lazer Avatar asked Sep 30 '09 19:09

Lazer


People also ask

What command will terminate session in MATLAB?

exit terminates the current session of MATLAB®. This function is equivalent to the quit function and takes the same options. For more information, see quit .

How do you force quit a function in MATLAB?

To exit a function, use return .


1 Answers

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

like image 133
gnovice Avatar answered Oct 25 '22 22:10

gnovice