How can I transform these data into seasonal data?

3 ビュー (過去 30 日間)
Pul
Pul 2021 年 8 月 15 日
コメント済み: Pul 2021 年 8 月 16 日
Hello everyone,
I should transform monthly data into seasonal data and yearly data into seasonal data: [1) December-January; 2) From March to October; 3) November; 4)February] and then doing the average.
Can anyone help me kindly?
Thank you.
  6 件のコメント
Pul
Pul 2021 年 8 月 16 日
編集済み: Pul 2021 年 8 月 16 日
Thank you!
I want to accept your answer, but it doesn't give me the option and I don't know why.
Scott MacKenzie
Scott MacKenzie 2021 年 8 月 16 日
OK, I'll also put the code from my comment into answer box.

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

採用された回答

Scott MacKenzie
Scott MacKenzie 2021 年 8 月 16 日
Note: Code in comment moved here...
load('DATI_MAR_mensili');
% NOTE: loads a table with 'Year' and 'Month' columns
% add date/time column labeled 'Time'
DATIMARmensili.Time = datetime(DATIMARmensili.Year, DATIMARmensili.Month, 0);
% convert to timetable with all the other data columns
DATI_MAR_SEASON = table2timetable(DATIMARmensili(:,3:end));
% define seasons, as in previous question/answer, and continue

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by