I've written a script that imports all .csv files from the current folder so as to plot the data. This works absolutely fine with my home computer which runs R2013a. However, my work computer (version R2015a) fails to import the files beyond the first row of data and I get the following error:
Error using dlmread (line 138)Mismatch between file and format string.Trouble reading 'Numeric' field from file (row number 2, field number 1) ==>4.000000E-8,1.238711E-2\n
I don't believe that this is an issue with my script as Matlab also fails to read the file beyond the first 9 lines if I import the file using the 'Import Data' button (the script works fine on my home computer, after all). I've tried reinstalling my work Matlab R2015a, but the problem persists.
The files have 8 lines of blurb and the numerical values begin on line 9. They look like this:
TOF Data File30/04/201510:26Bias -- 0.000V Thickness -- 1.00000um Q/Q0 -- Inf Mobility -- 0.00000E+0cm2/V.s Time (s) Voltage (V)0.00E+00 1.22E-048.00E-10 1.06E-031.60E-09 -3.32E-032.40E-09 -1.44E-033.20E-09 5.59E-034.00E-09 6.68E-034.80E-09 -2.85E-03etc...
Only row 9 is imported. What could this issue be? I've attached screen shots of how the data is imported in Matlab.
Thanks!
Best Answer