MATLAB: Convert .dat file to .m file (table or matrix) format

.dat to .m file

Hello Friends,
I want to convert .dat file to readable format for matlab i.e .m file format or atleast in table format….I tried converting to .xls but couldnt because file size is 340MB….
Please help me with your suggestions Thanks Abhi

Best Answer

There is no limit for xls files except the number of columns. So please explain the prioblem with the 340MB file with any details. Mentioning only, that there is any problem does not allow to suggest an improvement. Perhaps using the more powerful XLSX file instead helps already.
The file format .dat is not unique or standardized. Therefore we cannot guess how the conversion should happend. Creating an .m file would be strange, because these files are thought for Matlab code, not for storing data.
Related Question