At times scripts need to run without displaying the plots.
By doing this, the script statement need not be commented.
When working from home, running graphics over the network may be too slow.
To perform the process, add the following lines of code:
%setenv DISPLAY /dev/null % MATLAB.
By using these simple tricks, we can run MATLAB without graphics.