maximum wavelet decomposition
显示 更早的评论
Can anyone help me to understand that if I use the following command with level greater than maximum level of decomposition, I still have details (dec.cd) of 256 cells more than maximum level, which looks weird.
dec = mdwtdec('c',signal,level,wavelet);
What does it shows?
Ashutosh
回答(1 个)
Wayne King
2012-5-15
Hi Ashutosh, both mdwtdec and wavedec will work beyond the maximum level, but it is up to you as the user to know that these coefficients do not mean anything. What happens inside the code after you reach the maximum level is that the single remaining coefficient will be extended and iterated on. But the result will be essentially zero (if not zero). With the Haar wavelet, you will get exactly zeros. For example:
x = randn(8,1);
level = 5;
dwtmode('per')
[C,L] = wavedec(x,6,'db1');
details = detcoef(C,L,'cells');
You see with details that you will get zeros after level 3.
The same is true with
dec = mdwtdec('c',x,8,'db1');
dec.cd
类别
在 帮助中心 和 File Exchange 中查找有关 Signal Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!