How can I temporarily avoid figures to be displayed in MATLAB?

637 views (last 30 days)
I have written a MATLAB application that is creating many figures displaying its results. I do not want have these figures showing up every time I run the application. How can I temporarily tell MATLAB not to create figures?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 22 Feb 2012
To avoid showing figures in MATLAB you can start MATLAB using the noFigureWindows option. This option is not available on UNIX.
matlab -noFigureWindows
As an alternative you can change the default figure properties of the MATLAB root object:
If you want to temporarily suppress new figures that should be accesable later in the same session you can save the figure handle:
%create invisible figure 1
%create invisible figure 2
%show figure 1
Imola Fodor
Imola Fodor on 10 May 2021
hi, in any case, better using parfor for better performance, and it automatically won't show the figures

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!