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.
clc to clear the command window, ctrl+c to stop execution and ; at the end of the line you don't want to print will suppress the command window output.