Separating a timestamp into individual components
조회 수: 3 (최근 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
답변 (1개)
참고 항목
카테고리
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!