matlab do not show any figures
Posted by rolf on Thursday, 27 November 2014
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.
matlab -nodesktop
Include following lines in your code or paste it in the matlab command window to disable the figures:
set(0,'DefaultFigureVisible','off');
Sometimes it is also good to include
warning('off','all');
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
Add new comment