www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/@PointerRepository/stackClear.m

    function stackClear(pr,fH)
%STACKCLEAR Clear stack for figure
%
%  STACKCLEAR(PR, FIG) clears the stack data for the specified figure.

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


if isempty(fH) || ~isgraphics(fH,'figure')
    error(message('mbc:xregGui:PointerRepository:InvalidHandle'));
end

if isprop(fH, 'xregPointerRepoData')
    set(fH, 'xregPointerRepoData', []);
end