Extract data (timestamps) from csv file
1 view (last 30 days)
Show older comments
Sean Mark L
on 3 Mar 2020
Edited: Turlough Hughes
on 4 Mar 2020
I have a CSV file containing ~14000 rows with hundreds of timestamps.
I am trying to extract all the timestamps from the attahced csv file. Any help with coding please will be appreiacted.
Thanks
Accepted Answer
Turlough Hughes
on 3 Mar 2020
Edited: Turlough Hughes
on 4 Mar 2020
You could read the file in as a character vector with fileread and then use regexp as follows:
filetext = fileread('Info.csv');
t = str2double(regexp(filetext,'(?<=Time=)\d*','Match')).';
More Answers (0)
See Also
Categories
Find more on File Operations 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!