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 个评论

What do you mean by previous and new versions? MATLAB versions? Can you please specify the MATLAB version you are using?
Old: 2015 (32x), new: 2017, 2018 (64x both)
Could you upload the csv file?
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:
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.
I opened the file in Excel, saved as csv, then imported it to Matlab.

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by