Wavelets: how to pass to the cwtfilterbank() wavelets included in the "waveletfamilies" list?
2 次查看(过去 30 天)
显示 更早的评论
I can not find a clear explanation about how to use wavelets included in the waveletfamilies list.
I tried to pass the parameter of the wavelet within the cwtfilterbank, but it doesn't work.
The following code line
fb = cwtfilterbank('SignalLength',length(Power),'SamplingFrequency',Fs,Wavelet="haar");
as expected, returns the error
Expected Wavelet to match one of these values:
'morse', 'amor', 'bump'
The input, 'haar', did not match any of the valid values.
As expected, the line:
fb = cwtfilterbank('SignalLength',length(Power),'SamplingFrequency',Fs,Wavelet="amor");
works without problems.
0 个评论
回答(1 个)
Suvansh Arora
2022-11-30
You cannot apply ‘Haar’ wavelet using ‘cwtfilterbank’ command. For complete list of wavelet families and how to visualise them, please follow the documentation mentioned below:
To visualize ‘Haar’ wavelet, we do have several built-in functions to help you perform continuous wavelet transforms and analyse the time series data. Please refer to the documentation pages below for featured examples:
We also have two functions that can perform specifically a ‘Haar’ 1-D wavelet transform ("haart"), as well as continuous 1-D wavelet transforms ("cwt"). Please refer to the documentation pages below for more information regarding these functions as well as examples of how to use:
You may try 'cwt' command with "Haar" wavelets, but it does not use FFT algorithm, and you will not be able to see the frequency analysis results.
This may also incur some loss of time resolution. If it is a matter of not wanting to suffer this loss, then you may want to try the 'modwt' function. For more information regarding the "modwt" function, please refer to the documentation page below:
I hope the above information helps you.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Continuous Wavelet Transforms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!