I am trying to read in a CSV-file into MATLAB R2013b, but I keep receiving errors. I am positive my formatting is properly aligned with my columns in my Excel sheet.
>> exampletable = readtable('example.csv', 'ReadVariableNames',false, 'Delimiter',',', 'TreatAsEmpty','', 'Format','%s%s%s%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f');
Error using table/readTextFile (line 184)
Unable to read the entire file. You may need to specify a different format string, delimiter, or
number of header lines.
Error in table.readFromFile (line 41)
t = table.readTextFile(filename,otherArgs);
Error in readtable (line 114)
t = table.readFromFile(filename,varargin);
Caused by:
Reading failed at line 1. A field on that line may have contained the wrong type of value.
Best Answer