wpdec函数_波函数及Matlab常用指令.ppt

小波函数及Matlab常用指令

十九、wpjoin 功能:重新组合小波包 格式及说明: t = wpjoin(t,n) returns the modified tree t corresponding to a recomposition of the node n. t = wpjoin(t) is equivalent to t = wpjoin(t,0). [t,x] = wpjoin(t,n) also returns the coefficients of the node n。 [t,x] = wpjoin (t) is equivalent to [t,x] = wpjoin(t,0) * load noisdopp; x=noisdopp(1:1000); figure(1) subplot(321) plot(x) title('原始信号') t=wpdec(x,3,'db1','shannon'); plot(t) [wpt,wpc]=wpjoin(t,[1,1]); plot(wpt) figure(1) subplot(322) plot(wpc) title('节点2的小波包分解系数') * * * 二十、wpcutree 功能:剪切小波包分解树 格式及说明: t = wpcutree(t,L) cuts the tree t at level L. In addition, [t,rn] = wpcutree(t,L) returns the vector rn which contains the indices of the reconstructed nodes. * 举例 load noisdopp; x=noisdopp(1:1000); figure(1) subplot(211) plot(x) title('原始信号') t=wpdec(x,3,'db1','shannon'); plot(t) [wpt,rn]=wpcutree(t,2); plot(wpt) * rn=3,4,5,6 * 二十一、besttree 功能:计算最佳树 格式及说明: BESTTREE computes the optimal sub-tree of an initial tree with respect to an entropy type criterion. The resulting tree may be much smaller than the initial one. T = BESTTREE(T) computes the modified tree T corresponding to the best entropy value. [T,E] = BESTTREE(T) returns the best tree T and in addition, the best entropy value E. The optimal entropy of the node whose index is j-1 is E(j). [T,E,N] = BESTTREE(T) returns the best tree T, entropy value E and in addition, the vector N containing the indices of the merged nodes. * 举例 load noisdopp; x=noisdopp; t=wpdec(x,3,'db1','shannon'); x1=wprec(t); [wpt,wpca,wpcd]=wpsplt(t,[3,0]); plot(wpt) [bt,e,n]=besttree(wpt); plot(bt) * * e' ans = 1.0e+004 * Columns 1 through 8 -9.8173 -9.7822 -0.0350 -9.7303 -0.0519 -9.5880 -0.1423 -0.0318 Columns 9 through 11 -0.0200 -9.3112 -0.2768 n=2 * 二十二、bestlevt 计算完整最佳小波包树 BESTLEVT computes the optimal complete sub-tree of an initial tree with respect to an entropy type criterion. The resulting complete tree may be of

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值