您好,欢迎光临本网站![请登录][注册会员]  
文件名称: matlab wavelet NoiseSignal
  所属分类: C
  开发工具:
  文件大小: 2kb
  下载次数: 0
  上传时间: 2010-06-16
  提 供 者: shi***
 详细说明: matlab wavelet bio %Page 395 %生成3个正弦信号 N = 1024; t = 1:N; x1 = sin(3*t); x2 = sin(0.3*t); x3 = sin(0.03*t); %绘制其波形 figure(1); subplot(3,1,1); plot(t,x1,'LineWidth',2); xlabel('时间 t/s'); ylabel('(sig1)幅值 A'); axis([0 1200 -2 2]); subplot(3,1,2); plot(t,x2,'LineWidth',2); xlabel('时间 t/s'); ylabel('(sig2)幅值 A'); axis([0 1200 -2 2]); subplot(3,1,3); plot(t,x3,'LineWidth',2); xlabel('时间 t/s'); ylabel('(sig3)幅值 A'); axis([0 1200 -2 2]); %叠加信号 x = x1+x2+x3; figure(2);%分开绘图 plot(t,x,'LineWidth',2); xlabel('时间 t/s'); ylabel('幅值 A'); %一维小波分解 [c,l]=wavedec(x,5,'db3');%[c,L] %重构第一到第五层逼近信号 a5 = wrcoef('a',c,l,'db3',5); a4 = wrcoef('a',c,l,'db3',4); a3 = wrcoef('a',c,l,'db3',3); a2 = wrcoef('a',c,l,'db3',2); a1 = wrcoef('a',c,l,'db3',1); %显示各层逼近信号 figure(3); subplot(5,1,1);plot(a5,'LineWidth',2);ylabel('a5'); subplot(5,1,2);plot(a4,'LineWidth',2);ylabel('a4'); subplot(5,1,3);plot(a3,'LineWidth',2);ylabel('a3'); subplot(5,1,4);plot(a2,'LineWidth',2);ylabel('a2'); subplot(5,1,5);plot(a1,'LineWidth',2);ylabel('a1'); xlabel('时间 t/s'); %重构第一至第五层细节信号 d5 = wrcoef('d',c,l,'db3',5); d4 = wrcoef('d',c,l,'db3',4); d3 = wrcoef('d',c,l,'db3',3); d2 = wrcoef('d',c,l,'db3',2); d1 = wrcoef('d',c,l,'db3',1); %显示各层细节信号 figure(4); subplot(5,1,1);plot(d5,'LineWidth',2);ylabel('d5'); subplot(5,1,2);plot(d4,'LineWidth',2);ylabel('d4'); subplot(5,1,3);plot(d3,'LineWidth',2);ylabel('d3'); subplot(5,1,4);plot(d2,'LineWidth',2);ylabel('d2'); subplot(5,1,5);plot(d1,'LineWidth',2);ylabel('d1'); xlabel('时间 t/s'); ...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: matlab
 输入关键字,在本站1000多万海量源码库中尽情搜索: