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

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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

질문:

2018년 7월 2일

댓글:

2018년 7월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by