Extracting a timestamp from a header in a text file that also contains tabular data
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!