Re: managing Figures from GUIDE GUI



"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
.



Relevant Pages

  • managing Figures from GUIDE GUI
    ... I've tried inserting the following code into the function that runs when I press the Run button... ... CurrentFigs = get; ... I've tried various alternatives but anything that successfully removes all the figures also kills the GUI. ...
    (comp.soft-sys.matlab)
  • Re: managing Figures from GUIDE GUI
    ... I've tried inserting the following code into the function that runs when I press the Run button... ... CurrentFigs = get; ... I've tried various alternatives but anything that successfully removes all the figures also kills the GUI. ... You can also set the handlevisibility of your gui to "off" so it won't show up in that list, which is a good idea anyway to prevent command line plotting functions from plotting to your gui. ...
    (comp.soft-sys.matlab)
  • Re: comment
    ... able to do this since inserting a Comment does not trigger any events, ... HandleCommentSizing ... Static PrevCellAddress As String ... best regards ...
    (microsoft.public.excel.programming)
  • Re: Change command button colour
    ... > I have seen nowhere how a command button colour is changed. ... > possible through the GUI or programmatically? ... downloads on his web site. ...
    (microsoft.public.access.forms)
  • Re: Nothing new or exciting in Leopard
    ... Microsoft adopted the mouse control and GUI from Apple. ... regards, Peter B. Perlsø - liberterran.org, siad.dk ...
    (comp.sys.mac.advocacy)