Filter löschen
Filter löschen

How can I divide a week of a timetable into hours

2 Ansichten (letzte 30 Tage)
Antonio Melieni
Antonio Melieni am 15 Mai 2019
Kommentiert: Peter Perkins am 20 Mai 2019
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 Kommentare
Andrei Bobrov
Andrei Bobrov am 15 Mai 2019
Please attach your timetable as mat-file.
Antonio Melieni
Antonio Melieni am 15 Mai 2019
So what I need is the mean over each of the 168 hours of the week from these data

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Guillaume
Guillaume am 15 Mai 2019
hourlytimetable = retime(yourtimetable, 'hourly', 'mean')
  9 Kommentare
Guillaume
Guillaume am 16 Mai 2019
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 am 20 Mai 2019
Yes, this would be useful in many contexts. Thanks.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by