transform 5 minutes timeseries to hourly timeseries

3 ビュー (過去 30 日間)
Gaetano Pavone
Gaetano Pavone 2019 年 12 月 5 日
回答済み: Jyothis Gireesh 2020 年 1 月 3 日
I have a timeseries built with about 5 minutes time intervals among each observation. I would like to transform it in a hourly timeseries.
How can I do this?
  3 件のコメント
Gaetano Pavone
Gaetano Pavone 2019 年 12 月 6 日
can you explain how to trasform the timeseries into a timetable please?
Steven Lord
Steven Lord 2019 年 12 月 6 日
How do you have your timeseries stored right now?
Is it a pair of vectors, one holding the times and one the data?
Is it a matrix, with a column of serial date numbers and one the data?
Is it something else (and if so, please provide more details?)

サインインしてコメントする。

回答 (1 件)

Jyothis Gireesh
Jyothis Gireesh 2020 年 1 月 3 日
I am assuming here that you want to change the time intervals and units of the time series object keeping the data intact.
Here are a few pointers which may help you:
  • The ‘Units’field in the ‘TimeInfo’ property of the timeseries object can be set to ‘hours’ to change the data to hourly intervals
  • To change the time interval, you may set the ‘Increment’ field under the same property to 1.
  • These fields can be set by dot-indexing the object.
Hope this helps!!

カテゴリ

Help Center および File ExchangeTime Series についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by