www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/xreg_shutdown.m
function [OK,err]=xreg_shutdown(t) %XREG_SHUTDOWN Shutdown tasks for MBrowser % % XREG_SHUTDOWN is called when the Model Browser is closed. % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. OK = 1; err = ''; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % (1) Clear CandidateSet Interface data % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% csI = csetinterface; clean(csI); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % (2) Clear MousePointer Repository data % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% mPR = xregGui.PointerRepository('clean'); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % (3) Clear persistent ModelBrowser handle % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% clear MBrowser; % Clearing function does the job