www.gusucode.com > Matlab动力系统和时间序列分析工具箱 > Matlab动力系统和时间序列分析工具箱/lab432/gui/clear_session.m
function clear_session(auto); % CLEAR_SESSION clear session and prepare Lab432 to work % provide any input argument to clear_session if you don't want to get % confirmation dialog % % last modified 06.01.05 global GSD_GLOBALS TS if nargin<1 button = questdlg('All data will lost. Proceed?',... 'Clear Session','Yes','No','No'); else button='Yes'; end if strcmp(button,'Yes') close_graphics_figures; GSD_GLOBALS=[]; GSD_GLOBALS.fig_handles=[]; GSD_GLOBALS.advanced_fig_handles=[]; TS=[]; set(findobj('tag','MainFig'),'name','Lab432'); init_properties; gui_en_dis; end