Convert timetable to m-by-6 matrix

4 ビュー (過去 30 日間)
Oliver Zacho
Oliver Zacho 2020 年 6 月 20 日
コメント済み: Oliver Zacho 2020 年 6 月 20 日
Hi, I'm trying to convert a datetime array from this format:
2010-Jan-11 13:08.05
into a m-by-6 matrix with this format:
2010 1 11 13 8 5
I can't wrap my head around how to convert the timetable back to a regular matrix.
In my case, the length of M is around half a million.

採用された回答

madhan ravi
madhan ravi 2020 年 6 月 20 日
doc hms
doc ymd
  3 件のコメント
Steven Lord
Steven Lord 2020 年 6 月 20 日
Rather than calling those two functions separately, just call datevec.
Oliver Zacho
Oliver Zacho 2020 年 6 月 20 日
Okay, thanks :)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by