0

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.

kgf3JfUtW
  • 13,702
  • 10
  • 57
  • 80

3 Answers3

2

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.

rayryeng
  • 102,964
  • 22
  • 184
  • 193
horseshoe
  • 1,437
  • 14
  • 42
2

On a mac it's CTRL+C

Sorry for the short and not very appealing answer.

Benoit_11
  • 13,905
  • 2
  • 24
  • 35
1

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.