From: David Edson on
Hi
I have a GUI that end up giving me lots of figures (results) with a single button click. I used 'close all' functions but end up closing my GUI as well. Is there a way that I keep my GUI unclosed,

thanks
From: Andy on
"David Edson" <tojadeb(a)example.com> wrote in message <i24ens$i7$1(a)fred.mathworks.com>...
> Hi
> I have a GUI that end up giving me lots of figures (results) with a single button click. I used 'close all' functions but end up closing my GUI as well. Is there a way that I keep my GUI unclosed,
>
> thanks

I believe there was a FEX submission (called "keep", perhaps?) that allowed you to close all but specified handles. That sounds like what you're looking for.
From: someone on
"Andy " <myfakeemailaddress(a)gmail.com> wrote in message <i24f0o$j39$1(a)fred.mathworks.com>...
> "David Edson" <tojadeb(a)example.com> wrote in message <i24ens$i7$1(a)fred.mathworks.com>...
> > Hi
> > I have a GUI that end up giving me lots of figures (results) with a single button click. I used 'close all' functions but end up closing my GUI as well. Is there a way that I keep my GUI unclosed,
> >
> > thanks
>
> I believe there was a FEX submission (called "keep", perhaps?) that allowed you to close all but specified handles. That sounds like what you're looking for.

Another alternative might be to set the "main" GUI figure's HandleVisibility property to callback or off. There are lots of caveats. See the help documentation.

You can still close ALL figures (if you must) by using:

close all hidden