MATLAB Questions and Answers

Can we run Matlab without graphics?

Sometimes you may want to run scripts which contain plotting commands without displaying the plots and without going into the script to comment out the commands. An example: if you’re working from home and it’s too slow to run graphics over the network. You can play a simple UNIX trick: % setenv DISPLAY /dev/null % matlab