How to disable all figures that are invoked from within a matlab function?

조회 수: 16 (최근 30일)
saikiran
saikiran 2014년 3월 11일
편집: Mischa Kim 2014년 3월 12일
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

답변 (1개)

Mischa Kim
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.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by