www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mctree/detach.m
function T = detach(T) %DETACH Detaches tree node from its parent and children. % % T = DETACH(T) unlinks T from its parent and children and sets its own % reference to a null pointer. The returned node is thus a static copy of % the original that can be geiven a new address and added to a different % tree. % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. T = assignaddress(T, mbcpointer(1)); T.Children = mbcpointer(0); T.Parent = mbcpointer(1);