2023 02月12日
作者: 小白哥
  • 浏览: 312
  • 收藏:0
  • 点赞:0
MATLAB小波包分解

1.代码

clear
clc
% Load a signal.
load noisdopp
% Decompose the signal at level 3 with db1 wavelet packets using Shannon entropy.
wpt=wpdec(noisdopp,3,'db1','shannon');
% Plot the wavelet packet tree.
plot(wpt)


%Decompose packet(3,0)
wpt=wpsplt(wpt,[3 0]); 
% or equivalently wpsplt(wpt,7).
% Plot wavelet packet tree wpt. 
plot(wpt)


%Obtain the coefficients at the node (3,0). Plot the signal and coefficients.
cfs=wpcoef(wpt,[3 0]);
subplot(2,1,1)
plot(noisdopp)
title('Signal')
axis tight
subplot(2,1,2)
plot(cfs)
title('Packet (3,0) Coefficients')
axis tight

2.运行结果

1.jpg

2.jpg

3.jpg


  

发表评论

评论列表


没有评论

筛选

文章分类

热门文章

企业招聘网址

2023-12-07  浏览:3038次

BC1.2协议介绍

2023-06-14  浏览:2940次

USB2.0速度识别

2023-10-23  浏览:1363次