Re: managing Figures from GUIDE GUI
- From: "Nick Faulkner" <nick.faulkner@xxxxxxxxxxxxxxxxxxx>
- Date: Sun, 14 Jun 2009 18:16:01 +0000 (UTC)
"Nick Faulkner" <nick.faulkner@xxxxxxxxxxxxxxxxxxx> wrote in message <h0rj3u$sba$1@xxxxxxxxxxxxxxxxxx>...
Hi, I have a small problem with a GUI I'm working on to manage a signal processing simulation. Amongst other things the GUI provides a number of checkboxes which determine which data plots I want to display on a given run. I press the Run button and it all works fine, the plots are displayed as required. On subsequent runs I want the GUI to automatically clean up the figures left over from the previous run - this will be some variable number of figures depending on what I selected.
I've tried inserting the following code into the function that runs when I press the Run button...
CurrentFigs = get(0,'children);
close(currentFigs);
This closes the figures, but it also removes the GUI!
I've tried various alternatives but anything that successfully removes all the figures also kills the GUI. Suggestions gratefully received. Many thanks
regards,
Nick
Thanks for the replies folks - both useful and I have now sorted this problem. I'm on to my next problem now (please see new post), if you can help that would be great, regards
NIck
.
- References:
- managing Figures from GUIDE GUI
- From: Nick Faulkner
- managing Figures from GUIDE GUI
- Prev by Date: Re: Matrix where all rows has sum of 1
- Next by Date: incremental Figure updates from GUI
- Previous by thread: Re: managing Figures from GUIDE GUI
- Next by thread: updating edit etxt while having previous values
- Index(es):
Relevant Pages
|