Menu

close figure?

Help
2006-09-25
2013-04-25
  • Nobody/Anonymous

    Is there a close function to close a figure or "close all" to close all figures?

    Thanks!

     
    • Shai Ayal

      Shai Ayal - 2006-09-25

      It's not implemented as the close command yet (there are name conflicts I think), but for close you can do:

      octplot_command("delete",gcf());

      close all is a bit trickier:

      for hh=get(0,"children"),
        octplot_command("delete",hh);
      endfor

      DISCLAIMER: untested code. If it doesn't work, tell me

      Shai

       
    • Nobody/Anonymous

      The "close" command worked. The "close all" does not do anything. I will just use the "close" command then.

      Thanks!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.