How to compute the lag time between single day cross-correlation

1 回表示 (過去 30 日間)
aa
aa 2021 年 5 月 15 日
コメント済み: aa 2021 年 5 月 15 日
Dear Matlab members,
What I did:
I compute the noise cross correlation (CC) for daily temprature (365 days with 12 hours segment) between two cities and plot the output (output figure attached). We plot the CC as a function of day and lagtime ((Xaxis is lagtime, Yaxis is the datE or segment number and z is the CC). In output, bright color shows peak values in data (blue for negative and red for positive).
What we want to do;
I want to compute the lag for every day with respect to the maximum peak value at first day.
For example, time lag betwen the maximum peak value of day 1, 2 and 1, 3 and 1, 4, ... and 1, 365. Peak values is at -38 and lagtime can be observed which is 2 seconds in the output file.
Input and Output data:
Now I want to compute the lag time for every single day based on data by considering first day as a reference,as what we observed in output color picture
input data format:
.
Output data:
waveform indicate the stack signal for 365 days.
Could you please help me to solve this problem?

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021 年 5 月 15 日
Should you provide your data, some technical help can be given. As is, you can compute the lags using this simple hint here: https://www.mathworks.com/matlabcentral/answers/468821-trouble-understanding-lags-for-cross-correlation?s_tid=answers_rc1-1_p1_MLT
  1 件のコメント
aa
aa 2021 年 5 月 15 日
May you please share your email.. sO i can share witn you the script and data

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

カテゴリ

Help Center および File ExchangeData Preprocessing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by