www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mvgraph3d/delete.m

    function delete(gr)
%DELETE Deletes graph3d objects
%   DELETE(GR) deletes the graph object in gr.
%   Note that this deletes all the handle graphics objects
%   associated with GR, however MATLAB will still think GR
%   is a valid object.

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


if isgraphics(gr.axes) 
   mv_rotate3d(gr.axes,'off');
end

if isgraphics(gr.panel)
    delete(gr.panel);
end