How can I divide a week of a timetable into hours

조회 수: 1 (최근 30일)
Antonio Melieni
Antonio Melieni 2019년 5월 15일
댓글: Peter Perkins 2019년 5월 20일
Hi,
is it possible to devide a week of a timetable into 168 hours?
I would need the means of a timetable from monday to sunday on an hourly basis so I can show how its behaving of the week
Thx :)
  댓글 수: 2
Andrei Bobrov
Andrei Bobrov 2019년 5월 15일
Please attach your timetable as mat-file.
Antonio Melieni
Antonio Melieni 2019년 5월 15일
So what I need is the mean over each of the 168 hours of the week from these data

댓글을 달려면 로그인하십시오.

채택된 답변

Guillaume
Guillaume 2019년 5월 15일
hourlytimetable = retime(yourtimetable, 'hourly', 'mean')
  댓글 수: 9
Guillaume
Guillaume 2019년 5월 16일
Peter, a suggestion: an option to specify bin indices instead of bin intervals for groupsummary at least. That would avoid having to create the binning variable:
hourofweek = ...
groupsummary(Volatility, 'BinNumbers', hourofweek, 'mean')
Peter Perkins
Peter Perkins 2019년 5월 20일
Yes, this would be useful in many contexts. Thanks.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by