www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mctree/fullname.m

    function fname=fullname(T)
%FULLNAME Returns the fullname of this treenode.
%   FNAME = FULLNAME( NODE )
%
%   FNAME is parent node's fullname followed by the current node's name separated
%   by a forward slash ('/')

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

fname=name(T);

p= T.Parent;
while p~=0
   T= p.info;
   fname = [name(T),'/',fname];
   p= T.Parent;
end