www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtools/@cgbrowser/removeview.m
function removeview(h,ID) %REMOVEVIEW Remove the knowledge of a view having been created % % REMOVEVIEW(CGB, GUID) removes all knowledge that the browser has % created, or attempted to create, the view associated with GUID. This is % a debugging function and should not be used for any other purpose. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. idx = h.locateview(ID); if ~isempty(idx) tmp = h.ViewData; tmp(idx) = []; h.ViewData = tmp; tmp = h.ViewGUIDs; tmp(idx,:) = []; h.ViewGUIDs = tmp; tmp = h.ViewMenus; tmp(idx) = []; h.ViewMenus = tmp; end