标题:一维正交小波分解
只看楼主
vfdff
Rank: 6Rank: 6
等 级:侠之大者
威 望:8
帖 子:2172
专家分:425
注 册:2005-7-15
结帖率:79.17%
 问题点数:0 回复次数:0 
一维正交小波分解
%一维正交小波分解
clear all
close all
t=0:1/1024:1-1/1024;
x=sin(2*pi*t);
n=0.2*randn(1,length(x));
y=x+n;
figure;
subplot(2,1,1),plot(t,x);title('原始信号');
subplot(2,1,2),plot(t,y);title('加噪信号');
%==========================================================================
qmf=MakeONFilter('Daubechies',8);
L=10-5;%两层分解
wcoef = FWT_PO(y,L,qmf);%小波系数
figure;
subplot(2,1,1),plot(t,wcoef);title('小波分解信号');
%============================================
%=============中间处理过程====================
th=0.2*sqrt(log(length(x)));
%wcoef=sign(wcoef).*(abs(wcoef)-th).*(abs(wcoef)>th);%软阈值去噪
wcoef=sign(wcoef).*abs(wcoef).*(abs(wcoef)>th);%硬阈值去噪
%============================================
y_re=IWT PO(wcoef,L,qmf);
subplot(2,1,2),plot(t,y_re);title('重构信号');

%Copyright: Mr. Hongxiao Feng,Institute of Intelligent Information
%Processing, Xidian University,2008
搜索更多相关主题的帖子: 一维 正交小波 分解 
2008-12-02 12:25



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-247332-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.934690 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved