User Tools

Site Tools


close_neuroelf_gui_after_clear_classes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

close_neuroelf_gui_after_clear_classes [2011/04/28 18:37] (current)
jochen created
Line 1: Line 1:
 +====== How to close the NeuroElf GUI after clearing everything ======
 +
 +===== Motivation =====
 +Sometimes you accidentally enter
 +
 +<code matlab clearclasses.m>​clear classes</​code>​
 +
 +which then, inadvertently,​ also clears the contents of all displayed objects, which makes Matlab (due to the GUI's callbacks) go haywire and spit out tons of errors and warnings.
 +
 +===== Solution =====
 +To get a true fresh start, you first need to close the GUI (without invoking any further callbacks). To do so, enter
 +
 +<code matlab clearfiguresandclasses.m>​% get a handle to the xfigure class (default constructor)
 +xfig = xfigure;
 +
 +% then delete all objects without further ado
 +xfig.DeleteAllFigures;​
 +
 +% and *then* get a fresh start
 +clear classes;</​code>​
  
close_neuroelf_gui_after_clear_classes.txt ยท Last modified: 2011/04/28 18:37 by jochen