フィルターのクリア

how to calculate the period of climate data?

1 回表示 (過去 30 日間)
Mahboubeh Molavi-Arabshahi
Mahboubeh Molavi-Arabshahi 2022 年 6 月 23 日
編集済み: Jonas 2022 年 6 月 23 日
Hi every body
i need to know the priof of climate dat for exa,ple for temperature
my data is monthly from 1950 to 2021
so if i want to know whow many minths the data will be repeat or have change
how i can find it
  1 件のコメント
Jonas
Jonas 2022 年 6 月 23 日
編集済み: Jonas 2022 年 6 月 23 日
if you have periodic data and you want to find the period, try to use the xcorr variable to find it
[corVal,lag]=xcorr(yourData);
plot(lag,corVal);
% e.g.
[corVal,lag]=xcorr([1 2 3 4 3 2 1 2 3 4 3 2 1 2 3 4 3 2 1 2 3 4 3 2 1]);
% to plot the peaks
findpeaks(corVal,lag);
% to get position and peak value
[maxVal,loc]=findpeaks(corVal,lag,'Annotate','peaks')
maxVal = 1×5
87 130 173 130 87
loc = 1×5
-12 -6 0 6 12
here, we see e.g. a period of 6 months if each value in the original data was given in month spacing

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeClimate Science and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by