Generate wavelet cross correlation ceofficients using CWT?
5 ビュー (過去 30 日間)
古いコメントを表示
Hello!
I am cross correlating 2 signals using the CWT. I would like to know the maximum correlation coefficient of the desired signal (sig1 and sig 2) with the mother wavelet in order to identify similarity between the signals and the mother wavelet. i.e. how well does Signal 1 cross correlate with the Haar mother wavelet? The aim is to basically find out if there is a high level of similarity between the Haar mother wavelet and signal 1.
My code so far is below and based on the information provided in Matlabs help documentation. Although it computes the wavelet transform and cross correlates signal 1 and 2 successfully, I can't seem to get it to cross correlate signal 1 with the mother wavelet and generate the normalised cross correlation coefficients.
wname = 'Haar'; scales = 1:512; ntw = 21; wcoher(Sig_1, Sig_2,scales,wname,'ntw',ntw,'plot','cwt'); % Wavelet cross spectrum examines the two signals on the time scale plain wcoher(Sig_1,Sig_2,scales,wname,'ntw',ntw,'plot','wcs');
% Now I would like to cross correlate the mother wavelet with the signal to identify how similar the signal is to the mother wavelet.
Any ideas?!
Thank you!
0 件のコメント
採用された回答
Philip Caplan
2015 年 4 月 14 日
From my understanding of the problem, it sounds like you would like to determine the correlation between a given wavelet and the mother wavelet. Have you tried to use "wavefun" to generate the mother wavelet as a separate signal and then pass that to "wcoher"? One of the output arguments of "wcoher", called "xval", can be used to evaluate your signal such that the sizes are consistent when passed to "wcoher". "wcoher" ends up using "wavefun" to evaluate the wave you specify in 'wname' so this might give the desired result. For more information, please see:
Please let me know if I misunderstood your question.
その他の回答 (0 件)
参考
カテゴリ
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!