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

3 ビュー (過去 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 Center および File ExchangeWavelet Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by