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

100 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2012 年 2 月 22 日
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?

採用された回答

MathWorks Support Team
MathWorks Support Team 2012 年 2 月 22 日
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:
set(0,'DefaultFigureVisible','off')
If you want to temporarily suppress new figures that should be accesable later in the same session you can save the figure handle:
set(0,'DefaultFigureVisible','off');
%create invisible figure 1
h(1)=figure;
%create invisible figure 2
h(2)=figure;
set(0,'DefaultFigureVisible','on');
%show figure 1
figure(1)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

製品


リリース

R2008a

Community Treasure Hunt

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

Start Hunting!

Translated by