Hello,
I'm using textscan to pull data off a 382 line .csv file, however it seems to think it's done at line 26 as that's where it stops retrieving data. It's working perfectly for those 26 lines and the format of the data doesn't look like it changes among any of the lines.
This is lines 26 and 27 from the .csv:
26, B, blank, blank, blank, blank, blank, blank, 643.5, 5.28, 5.39, 0, 0, 9.05, 1.68, email, spark
27, C, blank, blank, blank, blank, blank, blank, 645.4, 5.5, 5.39, 0, 0, 8.93, 1.64, email, spark
This is the code:
clear allFID=fopen('masterjustdata.csv');datacell = textscan(FID, '%d%c%s%f%f%f%c%f%f%f%f%f%f%f%f%s%s', 382, 'Delimiter', ',');fclose(FID);
Anyone know possibly why it would do this?
Best Answer