フィルターのクリア

Finding out mean monthly values from daily values

3 ビュー (過去 30 日間)
Mark Rodger
Mark Rodger 2018 年 4 月 9 日
回答済み: Akira Agata 2018 年 4 月 16 日
I have a 7536x2 table that shows values for each hour of the day starting over February-Decemeber. I would like to find the mean value of each month. Any thoughts?
  3 件のコメント
Dina Berenbaum
Dina Berenbaum 2018 年 4 月 9 日
編集済み: Dina Berenbaum 2018 年 4 月 9 日
This should work:
for row = 1:2
mn(row) = mean((table(row,:).Variables));
end
Mark Rodger
Mark Rodger 2018 年 4 月 9 日
I've attached the mat file

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

回答 (1 件)

Akira Agata
Akira Agata 2018 年 4 月 16 日
By converting your table to timetable and using retime function, you can do it easily, like:
load('hourly_wind_speeds.mat');
TT = table2timetable(y1);
MonthlyMean = retime(TT,'monthly','mean');

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by