Why Import Tool can't read csv files?

Previous versions can read csv files. But the new ones show the error "can't read utf16-LE". But the first line of data is read correctly. The first line:
2016.07.04 00:00,1.11298,1.11333,1.11297,1.11333,7,0

7 comentarios

Vandana Rajan
Vandana Rajan el 2 de Jul. de 2018
What do you mean by previous and new versions? MATLAB versions? Can you please specify the MATLAB version you are using?
Alexander
Alexander el 2 de Jul. de 2018
Old: 2015 (32x), new: 2017, 2018 (64x both)
Adam Danz
Adam Danz el 2 de Jul. de 2018
Could you upload the csv file?
Alexander
Alexander el 3 de Jul. de 2018
Adam Danz
Adam Danz el 3 de Jul. de 2018
If you open the file and save it as "CSV (Comma delimited)" the import tool will work. However, if you have a bunch of files and can't convert all of them, perhaps this will help:
Alexander
Alexander el 3 de Jul. de 2018
Editada: Alexander el 3 de Jul. de 2018
You didn't write in which program I should open the file.
1) in MatLab - the same error.
2) in Excel. After saving the file size reduced a half, MatLab reads the data.
3) in Notepad. MatLab can't read Unicode (both LE and BE), only ANSI and UTF-8.
Adam Danz
Adam Danz el 3 de Jul. de 2018
I opened the file in Excel, saved as csv, then imported it to Matlab.

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Preguntada:

el 2 de Jul. de 2018

Comentada:

el 3 de Jul. de 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by