How to convert from daily timestep to monthly average?

4 ビュー (過去 30 日間)
Elizabeth Lees
Elizabeth Lees 2021 年 3 月 23 日
コメント済み: Mathieu NOE 2021 年 3 月 24 日
Hi I currently have a datatable loaded into MATLAB with the first column stating the date in yyyy-MM-dd HH:mm:ss timestep. I then have 11 other columns with data values. I want to convert this data from the current daily timestep stated to mean monthly values for each column of data. How do I go about doing this? I have attached the data file in question.

採用された回答

Mathieu NOE
Mathieu NOE 2021 年 3 月 23 日
hello Elizabeth
here you are :
Daily_Data = load('example_data.mat');
Daily_Data = Daily_Data.MIKESHEver10calibrationDetailedTSM11;
Monthly_avg_Data=retime(table2timetable(Daily_Data),'monthly','mean');
  2 件のコメント
Elizabeth Lees
Elizabeth Lees 2021 年 3 月 23 日
Thank you perfect answer!
Mathieu NOE
Mathieu NOE 2021 年 3 月 24 日
you're welcome !

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by