I need to just read the 3 following numerical value from a text file using sscanf line by line:
0.3616813421 V,0 counts,500 ms0.3567937374 V,0 counts,500 ms0.3616813421 V,0 counts,500 ms0.3616813421 V,0 counts,500 ms0.3665689229 V,0 counts,500 ms.
So far i have:
fileID=fopen('data.txt','rt');line=fgetl(fileID);a = fscanf('line','%s %s %s');
But this doesnt seem to work and im unsure as what to do.
Best Answer