This question already has an answer here:
- How to abort a running program in MATLAB? 1 answer
Sometimes I accidentally print a say 5000x5000 matrix, which takes a long time. How can I stop the command window from printing?
I am using Matlab R2015a on a Mac. Thank you very much.
On a Windows machine, it's Ctrl + C. This stops executing code as well as printing. I assume it is comparable on a Mac: Ctrl + C.