User Tools

Site Tools


close_neuroelf_gui_after_clear_classes
no way to compare when less than two revisions

Differences

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


close_neuroelf_gui_after_clear_classes [2011/04/28 16:37] (current) – created jochen
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 16:37 by jochen