close_neuroelf_gui_after_clear_classes
Table of Contents
How to close the NeuroElf GUI after clearing everything
Motivation
Sometimes you accidentally enter
- clearclasses.m
clear classes
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
- 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;
close_neuroelf_gui_after_clear_classes.txt · Last modified: 2011/04/28 16:37 by jochen