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

1 次查看(过去 30 天)
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.

回答(1 个)

Maneet Kaur Bagga
Maneet Kaur Bagga 2024-10-10
编辑:Maneet Kaur Bagga 2024-10-10
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!

类别

Help CenterFile Exchange 中查找有关 Wavelet Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by