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 CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by