I am having trouble reading a txt file
I have txt file with data formated below but Im only get the first line .
index: 0 int_time: 1718984569904518 us int_diff: 0 us min: 167 us max: 167 us
index: 1 int_time: 1718984569904682 us int_diff: 164 us min: 164 us max: 167 us
index: 1 int_time: 1718984569904682 us int_diff: 164 us min: 164 us max: 167 us
here is the code im using utilising textscan
fid=fopen(‘Desktopdata.txt’,’rt’);
data=textscan(fid,’%[index: 0 int_time:] %u64 %[us_int_diff: ] %s %s %s %s %s %s %s %s’)
fclose(fid);I have txt file with data formated below but Im only get the first line .
index: 0 int_time: 1718984569904518 us int_diff: 0 us min: 167 us max: 167 us
index: 1 int_time: 1718984569904682 us int_diff: 164 us min: 164 us max: 167 us
index: 1 int_time: 1718984569904682 us int_diff: 164 us min: 164 us max: 167 us
here is the code im using utilising textscan
fid=fopen(‘Desktopdata.txt’,’rt’);
data=textscan(fid,’%[index: 0 int_time:] %u64 %[us_int_diff: ] %s %s %s %s %s %s %s %s’)
fclose(fid); I have txt file with data formated below but Im only get the first line .
index: 0 int_time: 1718984569904518 us int_diff: 0 us min: 167 us max: 167 us
index: 1 int_time: 1718984569904682 us int_diff: 164 us min: 164 us max: 167 us
index: 1 int_time: 1718984569904682 us int_diff: 164 us min: 164 us max: 167 us
here is the code im using utilising textscan
fid=fopen(‘Desktopdata.txt’,’rt’);
data=textscan(fid,’%[index: 0 int_time:] %u64 %[us_int_diff: ] %s %s %s %s %s %s %s %s’)
fclose(fid); textscan MATLAB Answers — New Questions