Calculating daily average curve from weekly data
古いコメントを表示
So i have a big timetable with multiple observation from time period of one week. resolution is one hour I want to shrink it into one day time period and same 1 hour resolution. The one thing that could work is to first calculate observation averages so that the table becomes 168*1 and do a for loop to split every day of week into own columns (24*7 table) and then caculate the averages again so i finally get 24*1 table. Is there a better way to do this? timetable default "mean" function doesn't work for this because "hourly" returns only average of observations, but doesn't shrink my weekly data to daily average.
7 件のコメント
jonas
2020 年 8 月 6 日
"resolution is one hour I want to shrink it into one day time period and same 1 hour resolution"
what does this mean?
"..."hourly" returns only average of observations, but doesn't shrink my weekly data to daily average."
of course 'hourly' does not give you daily average. Have you tried 'daily'?
Mat P
2020 年 8 月 6 日
Mat P
2020 年 8 月 6 日
jonas
2020 年 8 月 6 日
If you provide a small set of data then I could write some example code. Regardless of method, I would strongly suggest using a timetable as basis.
Mat P
2020 年 8 月 8 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Time Series Events についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!