Is there a way to customize the default Morelet coefficient \omega_0 of 0.6 when using cwtft and wcohrence?

1 vue (au cours des 30 derniers jours)
According to the documentation on cwtft at https://ch.mathworks.com/help/wavelet/ref/cwtft.html#bsuadvo "The default value of ω0 is 6." I am trying to replicate a result from a paper, for which I need ω0 to be 20 when using wcoherence. Is there a way to change the default value? I have not been able to find anything in the Matlab documentation.

Réponses (1)

Maneet Kaur Bagga
Maneet Kaur Bagga le 10 Oct 2024
Modifié(e) : Maneet Kaur Bagga le 10 Oct 2024
Hi,
As per my understanding you want to change the default value of the Morelet wavelet's central frequency "w0" from "6" to "20".
Referring to the MATLAB documentation of "wcoherence" function, it does not allow direct modification of "w0".
As a possible workaround you can design the wavelet transform using "cwtft" function and then compute coherence. Please refer to the following code snippet as an example:
S = struct('name','morl', 'param', 20); % Custom Morelet wavelet with ω0 = 20
cwtStruct = cwtft({signal, 'scales', 1:64, 'wavelet', S});
You can then perform the wavelet transform separately for both the signals and then use the outputs to compute coherence.
Please refer to the following Mathworks documentation of the "cwtft" function for more information:
Hope this helps!

Catégories

En savoir plus sur Wavelet Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by