www.gusucode.com > wavelet工具箱matlab源码程序 > wavelet/wavelet/@ntree/ntnode.m
function nb = ntnode(t) %NTNODE Number of terminal nodes. % NB = NTNODE(T) returns the number of terminal nodes % in the tree T. % % The nodes are numbered from left to right and % from top to bottom. The root index is 0. % % See also WTREEMGR. % M. Misiti, Y. Misiti, G. Oppenheim, J.M. Poggi 21-May-2003. % Last Revision: 21-May-2003. % Copyright 1995-2004 The MathWorks, Inc. nb = length(t.tn);