Separating a timestamp into individual components
4 次查看(过去 30 天)
显示 更早的评论
I have time stamps in a vector with the form DDMMYYYY. Is there any way to seperate all of the elements so I can have a date column DD, a month column MM and a year column YYYY for each individual row.
The first few lines of the vector are below:
times =
20082009
21082009
22082009
23082009
And I am trying to get it in the form below so each component of the time stamp and its corresponding data are set out in different columns.
20 08 2009
21 08 2009
22 08 2009
23 08 2009
I have tried some of the methods listed in similar threads but they didn't seem to work for this format. The times vector only includes a column of these timestamps with the corresponding data and the table headings removed.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Identification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!