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

 채택된 답변

Turlough Hughes
Turlough Hughes 2020년 3월 3일
편집: Turlough Hughes 2020년 3월 4일

0 개 추천

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')).';

댓글 수: 1

Sean Mark L
Sean Mark L 2020년 3월 4일
Thank you, it worked perfectly. I could not get my head around how to do it but I understand now.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by