Importing csv file with scientific notation
Ältere Kommentare anzeigen
I am having a lot of trouble importing my csv files, I have tried: importdata, dlmread and textscan. Just cant seem to get it working.
I have 100+ files, so changing them manually is tricky
when using importdata the result end up as a cell aray: {' - 6 . 5 9 9 4 8 E - 0 0 1 , - 4 . 8 6 2 2 6 E + 0 0 4 , - 6 . 5 9 9 4 8 E - 0 0 1 , 3 . 8 2 3 7 5 E + 0 0....'}
1 Kommentar
Guillaume
am 23 Jul. 2019
The main problem with your file is that it is encoded in UTF-16LE (16-bit unicode little endian), which matlab doesn't officially support for reading and writing.
Is there any chance that you can change the settings of whichever software is writing these files so that it is written with a different encoding (UTF8 would be a lot better)?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Text Files finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!