Wavelets: how to pass to the cwtfilterbank() wavelets included in the "waveletfamilies" list?

2 visualizaciones (últimos 30 días)
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.

Respuestas (1)

Suvansh Arora
Suvansh Arora el 30 de Nov. de 2022
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.

Categorías

Más información sobre Continuous Wavelet Transforms en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by