matlab do not show any figures
Sometimes you don't want to display figures or plots within matlab, e.g. if running matlab with the -nodesktop flag on a remote machine, e.g.
Include following lines in your code or paste it in the matlab command window to disable the figures:
Sometimes it is also good to include
to suppress all warnings, e.g. when using the function 'waitbar'. Otherwise your screen is spamed with the warning:
Warning: waitbar is no longer supported when MATLAB is started with the -nodisplay or -noFigureWindows option or there is no display