eastchild 发表于 2007-4-26 20:14

信号间断点检测

load freqbrk;
s=freqbrk;
=wavedec(s,6,'db5');
subplot(8,1,1);
plot(s);
title('使用db5小波分解6层:s=a6+d6+d5+d4+d3+d2+d1')
Ylable('s');
a6=wrcoef('a',c,l,'db5',6);
subplot(8,1,2);
plot(a6);
Ylable('a6');
d6=wrcoef('d',c,l,'db5',6);
subplot(8,1,3);
plot(d6);
Ylable('d6');
d5=wrcoef('d',c,l,'db5',5);
subplot(8,1,4);
plot(d5);
Ylable('d5');
d4=wrcoef('d',c,l,'db5',4);
subplot(8,1,5);
plot(d4);
Ylable('d4');
d3=wrcoef('d',c,l,'db5',3);
subplot(8,1,6);
plot(d3);
Ylable('d3');
d2=wrcoef('d',c,l,'db5',2);
subplot(8,1,7);
plot(d2);
Ylable('d2');
d1=wrcoef('d',c,l,'db5',1);
subplot(8,1,8);
plot(d1);
Ylable('d1');

代码运行后,结果只有原始信号,没出现要的8层图象(用db5小波将信号分解6层 )   程序哪出了问题请高手指点一二,谢谢

simon21 发表于 2007-4-27 15:30

把程序中的Ylable改为ylabel

eastchild 发表于 2007-5-4 00:15

谢谢果然厉害啊
页: [1]
查看完整版本: 信号间断点检测