Filter löschen
Filter löschen

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

13 Ansichten (letzte 30 Tage)
saikiran
saikiran am 11 Mär. 2014
Bearbeitet: Mischa Kim am 12 Mär. 2014
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

Antworten (1)

Mischa Kim
Mischa Kim am 12 Mär. 2014
Bearbeitet: Mischa Kim am 12 Mär. 2014
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.

Kategorien

Mehr zu Graphics Object Identification finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by