MATLAB: Import large csv file

csvdata import

hello, I have a 22 digit count in the first column of my csv file and all the numbers are important. But Matlab has written the number as E21 and losing significant figures, what should I do? and I have more than one question I just want to get the 1st, 3rd and 5th columns, how can I do?

Best Answer

You cannot read in the first field as numeric. There is no support in the built in types for 22 decimal digits of precision.
detectImportOptions on the file and set the variable type for the first field to be string and readtable with that options structure.
Related Question