フィルターのクリア

cwt and wcoherence different periods

3 ビュー (過去 30 日間)
Elif Cagda Kandemir
Elif Cagda Kandemir 2022 年 3 月 4 日
I am performing cwt and wcoherence commands for acceleration responses of two dynamical systems under earthquake motion. Sampling intervals of both systems are same. Hence, the periods obtained from cwt are same for both systems. However they (period_1) differ form period values obtained form wcoherence (period_coh). The codes are below. What is the reason?
Also I cannot achieve same period data (i.e. period_1) in mat file as shown in cwt figures.
[wt1,period_1,coi1] = cwt(accel1(:,m),wname,dt);
[wcoh,wcs,period_coh] = wcoherence(accel1(:,m),accel2(:,m),dt) ;
Thanks in advance.

回答 (1 件)

vidyesh
vidyesh 2024 年 1 月 24 日
編集済み: vidyesh 2024 年 1 月 24 日
Hi Elif,
You've noticed a difference in the period values when comparing the results from the continuous wavelet transform; cwt and wavelet coherence; wcoherence. This variation is due to the distinct default parameters used to construct the filter banks in each method.
Specifically, the wcoherence function creates its filter bank with the Morlet wavelet, also known as "amor," and sets 'voicesPerOctave' parameter to 12 by default. These parameters influence the period values you obtain.
In contrast, the cwt function uses a different set of default parameters, leading to the period values you've labelled as ‘period_1’ being different from ‘period_coh’.
When calling cwt set the 'wname' parameter as "amor" and 'voicesPerOctave' as 12 to get 'period_1' equal to 'period_coh'.
Hope this helps
  1 件のコメント
Elif Cagda Kandemir
Elif Cagda Kandemir 2024 年 1 月 30 日
Thanks, that helped so much.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeContinuous Wavelet Transforms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by