cwt and wcoherence different periods
조회 수: 2 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (1개)
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Continuous Wavelet Transforms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!