フィルターのクリア

How can I divide a week of a timetable into hours

2 ビュー (過去 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 Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by