how to create a sequence of time?

3 ビュー (過去 30 日間)
Lilya 2021 年 8 月 2 日
コメント済み: Lilya 2021 年 8 月 2 日
Hi all,
I want to create a set of sequence of an hourly date and time starts from 2019,01,01 to 2019,12,31
then calculate the average of every 6 hours.
any help will be appreciated.


Simon Chan
Simon Chan 2021 年 8 月 2 日
How about the following?
It starts from 2019-01-01 00:00:00 to 2019-12-31 23:00:00 with 1 hour interval
First 4 output shown below:
01-Jan-2019 00:00:00 01-Jan-2019 01:00:00 01-Jan-2019 02:00:00 01-Jan-2019 03:00:00
  3 件のコメント
Lilya 2021 年 8 月 2 日
thank you !!


その他の回答 (0 件)


Find more on Dates and Time in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by