|
楼主 |
发表于 2006-6-19 21:10
|
显示全部楼层
回复:(qiuqia17)contour~~
本帖最后由 wdhd 于 2016-3-17 13:35 编辑
我试了
load 3;
b=X;
b=b';
g=length(b);
t=0:g-1;
[c,l] = wavedec(b,4,'sym4');
cfd = zeros(4,g);
for k = 1:4
d = detcoef(c,l,k);
d = d(ones(1,2^k),:);
cfd(k,:) = wkeep(d(:)',g);
end
cfd = cfd(:);
I = find(abs(cfd)
cfd(I)=zeros(size(I));
cfd = reshape(cfd,4,g);
fs=2e+6;
delta=1/fs;
a=2.^[1:4];
f=scal2frq(a,'sym4',delta);
contour(t,f,cfd);
结果和想象中的相去甚远.
可能是我的思路错了.
请指点!
|
|