Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
nodesplt.m
Package: wavelet_toolbox.rar [view]
Upload User: haiyisale
Upload Date: 2013-01-09
Package Size: 3246k
Code Size: 1k
Category:
Wavelet
Development Platform:
Matlab
- function t = nodesplt(t,node)
- %NODESPLT Split (decompose) node(s).
- % T = NODESPLT(T,N) returns the modified tree T
- % corresponding to the decomposition of the node(s) N.
- %
- % The nodes are numbered from left to right and
- % from top to bottom. The root index is 0.
- %
- % See also NODEJOIN.
- % M. Misiti, Y. Misiti, G. Oppenheim, J.M. Poggi 12-Mar-96.
- % Last Revision: 21-May-2003.
- % Copyright 1995-2004 The MathWorks, Inc.
- % $Revision: 1.4.4.2 $ $Date: 2004/03/15 22:38:27 $
- [n_rank,node] = findactn(t,node,'a_tn');
- nbn = length(n_rank);
- if nbn==0 , return; end
- order = treeord(t);
- tn = leaves(t);
- tmp = tn(1:n_rank(1)-1);
- for k=1:nbn-1
- i_child = (node(k)*order)+[1:order]';
- tmp = [tmp ; i_child ; tn(n_rank(k)+1:n_rank(k+1)-1)];
- end
- tn = [tmp ; (node(nbn)*order)+[1:order]' ; tn(n_rank(nbn)+1:end)];
- switch order
- case 1 , depth = max(tn);
- otherwise , depth = floor(log((order-1)*max(tn)+1)/log(order));
- end
- t = set(t,'depth',depth,'tn',tn);