When running the DWT function from the signal processing toolkit in R2016b, I get errors in my returned cA and cD variables. Why is this happening?

1 次查看(过去 30 天)
Say I have a signal, 'x' = randn(32,1). When I run [cA cD] = dwt(x, 'wname') for a wavelet with 'wname' which has length greater than 2 (i.e. any other wavelet besides a haar) my cA and cD vectors return with more than n/2 elements (in this case, more than 16 elements each). Specifically, if I run [cA cD] = dwt(x, 'db2') my cA and cD vectors each return with 17 elements, and if I run [cA cD] = dwt(x, 'db4') cA and cD both return with 19 elements. So, it appears the greater the length of the wavelet I'm using, the greater number of elements in my returned cA and cD vectors, but the length of the wavelet should have no influence on the length of cA and cD (for a single level transform, they should both always have length = n/2). Does anyone know why this is happening?? Thanks!

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Discrete Multiresolution Analysis 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by