I have data with dates and times in separte columns. How do I put them together into a datetime format?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have data with dates and times in separate columns. How can I get them combined into a single datetime stamp column?
댓글 수: 4
Jan
2019년 3월 6일
And what is the wanted result? A Matlab array or table object, another CSV file?
Please add the required details. The readers cannot guess, what you want to do.
채택된 답변
Peter Perkins
2019년 3월 11일
Timothy, in recent versions of MATLAB (since R2018a, IIRC), readtable should read those two columns as a datetime and a duration, and you can just add them. Prior to that, you'lll have to read the times in as text and convert to duration. You can use this File Exchange post. After that, just add o the datetime.
But it looks like maybe you got there on your own!
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!