Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to suppress figure() to bring figure to foreground?
Date: Wed, 16 Sep 2009 14:57:19 +0000 (UTC)
Organization: Forschungszentrum J&#252;lich GmbH
Lines: 23
Message-ID: <h8qucf$qoi$1@fred.mathworks.com>
References: <cd62214e-2635-4f6d-a367-eb8fbfaef57b@o36g2000vbl.googlegroups.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1253113039 27410 172.30.248.37 (16 Sep 2009 14:57:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 16 Sep 2009 14:57:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1088664
Xref: news.mathworks.com comp.soft-sys.matlab:570822


Joe Duchtel <duchtel@gmail.com> wrote in message <cd62214e-2635-4f6d-a367-eb8fbfaef57b@o36g2000vbl.googlegroups.com>...
> Hello -
> 
> I realize that I need to use the figure() command to create a figure
> but is there any way that it will not automatically bring each figure
> to the forground if it is called for a figure that is already open?
> This happens since I run an m-file several times without closing each
> figure prior to a new run.
> 
> Is there a way to get a list of all open figures?  I tried get(0) but
> the 'CurrentFigure' will only tell the currently active figure.
> 
> Thanks,
> Joe


HI Joe,

h = figure('visible', 'off')

get(0,'children')

hth kinor