How can I stop program execution in MATLAB without exiting MATLAB. I\'m looking for something like exit(1) in C++.
I\'ve tried exit/quit, but they also kill MATLAB w
You are looking for Ctrl+c key combination. This will abort any program's execution. Take the cursor to the MATLAB's command window and then press Ctrl+c.
Though there are two scenarios when even Ctrl+c cannot stop the execution:
Ctrl+c won't have any effect.Ctrl+c.Then you have no other option but to go to Task Manager and stop the MATLAB process.