How to disable all figures that are invoked from within a matlab function?
13 ビュー (過去 30 日間)
古いコメントを表示
I have a main program where I have invoked some functions as shown below
main.m
clc;
clear all;
myfunc();
-------
plot----
-------
myfunc.m
% has some plots
Now when I run my main file I don't want to see the plots invoked from myfunc(); Pleas suggest me with some matlab statements to do this
2 件のコメント
回答 (1 件)
Mischa Kim
2014 年 3 月 12 日
編集済み: Mischa Kim
2014 年 3 月 12 日
Saikiran, use
set(gcf,'Visible','off');
set(0,'DefaultFigureVisible','off');
for the current ( gcf ) and all following figures. You can turn it back on accordingly.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Graphics Object Identification についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!