Convert data from minutes to hourly average
2 ビュー (過去 30 日間)
古いコメントを表示
My data has time set up as dd-month-yyyy hh:mm:ss How do I average my data from minutes to hours
0 件のコメント
回答 (1 件)
Mohammad Sami
2020 年 10 月 8 日
If your data is in timetable / table format. You can use the groupsummary to summarise your data into any intervals.
a = groupsummary(TT,"Column_w_datetime","hour","mean");
2 件のコメント
Mohammad Sami
2020 年 10 月 8 日
Yes hour will provide hourly average. There are also other options if you want to change the interval.
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!