www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtools/@cgbrowser/resetgui.m

    function resetgui(h)
%RESETGUI Reset the browser gui
% 
%  RESETGUI(CGB) resets the figure pointer and unlocks the gui.  This is
%  useful if an operation has errored but you believe the project has not
%  been corrupted.

%  Copyright 2000-2014 The MathWorks, Inc. and Ford Global Technologies, Inc.


PR = xregGui.PointerRepository;
PR.stackClearAndReset(h.Figure);
h.unlock;