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.
MATLAB: Calculating daily average curve from weekly data
averagehourlytimetableweekly
Related Question
- I have time series data of 1 year each day 2880 values row wise so a matrix of 365X2880. I want to do monthly average. January 31 days average one file of one month, so that I can finally get 12 files each of monthly average.
- Convert “number of days since” to datetime, given 365-day and 360-day calendars (not Gregorian)
- How to convert a 8760X30matrix to a 365X30 matrix
- Inflow: weekly to hourly, linear interpolation
Best Answer