Sometimes we may want to run scripts that involve plotting commands without showing the plots and without going into the script to comment out the commands.
An example: if we are working from home and it's too slow to run graphics over the network. We can play a simple UNIX trick:
%setenv DISPLAY /dev/null % matlab