Effacer les filtres
Effacer les filtres

Convert timetable to m-by-6 matrix

4 vues (au cours des 30 derniers jours)
Oliver Zacho
Oliver Zacho le 20 Juin 2020
Commenté : Oliver Zacho le 20 Juin 2020
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.

Réponse acceptée

madhan ravi
madhan ravi le 20 Juin 2020
doc hms
doc ymd
  3 commentaires
Steven Lord
Steven Lord le 20 Juin 2020
Rather than calling those two functions separately, just call datevec.
Oliver Zacho
Oliver Zacho le 20 Juin 2020
Okay, thanks :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Dates and Time dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by