date and time serial conversion
Ältere Kommentare anzeigen
I have a table with one million rows and 5 columns. The first column has the dates and the second column the time. I want toconvert the date and time to a number as i want to turn the table into a matrix and a matrix cannot have date and time.
4 Kommentare
James Tursa
am 4 Nov. 2014
How is the data stored? Cell array of strings or what? What number do you want the date converted to? Datenum or Julian Day or what?
AA
am 4 Nov. 2014
per isakson
am 4 Nov. 2014
"appear as 26072004"   Why do you want it that way? To me that is asking for problems down the road.
AA
am 4 Nov. 2014
Akzeptierte Antwort
Weitere Antworten (1)
Michael Haderlein
am 4 Nov. 2014
You can use datenum:
datevec(datenum('04.11.2014 12:48','dd.mm.yyyy HH:MM'))
ans =
2014 11 4 12 48 0
1 Kommentar
AA
am 4 Nov. 2014
Kategorien
Mehr zu Dates and Time finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!