MATLAB: Import large numbers from text file without scientific notation data importscientific notation I have a text file that contains some large numbers. when i import this file with importdata(file.txt) function, it will be in scientific notation. how can i avoid this and import in full number in digit. Best Answer Don't use importdata then. Use textscan with %d64 for signed values or %u64 for unsigned values.... But before you go to that trouble, give the commandformat long gand ask to display your data again. If your integer values are no more than +/- 999999999999999 then you will see the integer values.If your integer value exceed 18446744073709551615 then you will not be able to store them exactly even as uint64. Related SolutionsMATLAB: Is there loss of precision when writing values using CSVWRITE in MATLAB 7.0 (R14) The CSVWRITE function converts numbers to short format before writing them to the file. To preserve precision, use the DLMWRITE function to explicitly set the precision of the data in the CSV-file:dlmwrite('filename.csv', [1.23456789], 'delimiter', ',', 'precision', 9); MATLAB: Read a txt file with engineering format What kind of trouble? try thisfilename = 'Source.txt'; format long[B,delimiterOut]=importdata(filename); Related QuestionImport parts of large comma decimal txt fileImporting text to cell, avoid conversion to scientific notationCan I use the Import Wizard to open files that are partially in ASCII format and partly in binary format
Best Answer