Extracting a timestamp from a header in a text file that also contains tabular data
이전 댓글 표시
The .txt file I am working with should be attached.
In the second row, I have some strings that look like this:
Recording Time Stamp: 2021-06-10 18:39:44.402
The time stamp marks the beginning of when the data started being recorded. I want to extract the time at the end of it in HH:MM:SS.SSS and turn it into a time value that I can work with in Matlab. The device I have records 500 rows of data per second. I want to be able to add a column of data to the table that uses the time stamp and then adds 1/500 of a second to the time in each successive row, so that I know precisely what time each row of data was taken.
Does anybody know the simplest way this could be done? I've taken a crack at it but can't quite figure it out.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Tables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!