Change a half hourly table to hourly time table
2 ビュー (過去 30 日間)
古いコメントを表示
I have a table which consists of 220 columns of half-hourly values over the course of a year. Is there a way to change the table to hourly values which are the average across two of the half hourly values.
0 件のコメント
採用された回答
Walter Roberson
2018 年 2 月 5 日
3 件のコメント
Peter Perkins
2018 年 2 月 6 日
Assuming you have R2016b or later, use table2timetable to create a timetable first, then call retime, using 'hourly'.
Pre-R2016b, you can create a new variable in your table that is your timestamps rounded down to the previous hour (use dateshift), then use varfun and group by that new variable to compute the mean of all the data variables.
Steven Lord
2018 年 2 月 6 日
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Tables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!