nodesize.m
上传用户:haiyisale
上传日期:2013-01-09
资源大小:3246k
文件大小:0k
- function s = nodesize(t,nodes)
- %NODESIZE Size of nodes in a DTREE object.
- % S = NODESIZE(T,N) gives the size of the data
- % associated with the node(s) N.
- %
- % CAUTION: N contains indices of node(s).
- % M. Misiti, Y. Misiti, G. Oppenheim, J.M. Poggi 23-May-2003.
- % Last Revision: 23-May-2003.
- % Copyright 1995-2004 The MathWorks, Inc.
- % $Revision: 1.1.6.2 $ $Date: 2004/03/15 22:37:32 $
- ptrINFO = 2:3;
- idx = gidxsint(t.allNI(:,1),nodes);
- s = t.allNI(idx,ptrINFO);