How to split a column in a table into two columns by a space
Ältere Kommentare anzeigen
I have a table of 4 columns. One column is datetime, '2016-02-01 20:48:58.0000000' I would like to split the date and time into two columns. How to do that? Thanks!
Jennifer
Akzeptierte Antwort
Weitere Antworten (2)
Peter Perkins
am 7 Mär. 2016
0 Stimmen
If the variable in your table is literally a datetime, and not a cellstr containing datestrs, then you'll want to split them uing timeofday to get the time part, and dateshift to get the date part.
1 Kommentar
JFz
am 7 Mär. 2016
Kategorien
Mehr zu Dates and Time finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!