thank you so much and now this is how my code looks like:
fid = fopen('20191008-155724_DecaWaveAllAccum.log');
S = [ ];
Count = 0;
while ~feof(fid)
tline = fgetl(fid);
if contains (tline,'Accum Len')
Count = Count + 1;
s = textscan(fid,'%d16 %d16',1016,'Delimiter',',');
real = s{1};
Img = s{2};
ss = cell2mat(s);
sss = double(ss);
S = [S;sss];
end
end
fclose(fid);
with updating log file my count is not updating automatically. I need to run the code again in order to update the count. But I need it to be in REALTIME. Is there any other way to do this?