Path: news.mathworks.com!not-for-mail
From: "Donn Shull" <donn.shull.no_spam@aetoolbox.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to suppress figure() to bring figure to foreground?
Date: Wed, 16 Sep 2009 14:59:05 +0000 (UTC)
Organization: L &#38; D Engineering LLC
Lines: 22
Message-ID: <h8qufp$40a$1@fred.mathworks.com>
References: <cd62214e-2635-4f6d-a367-eb8fbfaef57b@o36g2000vbl.googlegroups.com>
Reply-To: "Donn Shull" <donn.shull.no_spam@aetoolbox.com>
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 1253113145 4106 172.30.248.37 (16 Sep 2009 14:59:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 16 Sep 2009 14:59:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 219306
Xref: news.mathworks.com comp.soft-sys.matlab:570823


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

Hello Joe,

You can use get(0, 'Children') to return all the children of the desktop.

Hope this helps,

Donn