Trouble with csvread and readtable (see attached .csv file)

조회 수: 1 (최근 30일)
bmeyer
bmeyer 2016년 2월 18일
댓글: Peter Perkins 2016년 2월 24일
Hello,
I am having difficulty reading a specific csv file into an array (see attached). I have been trying to use csvread and readtable with no success. Any suggestions?
  댓글 수: 2
bmeyer
bmeyer 2016년 2월 18일
File should be attached here. Not sure why it didn't attach to the original question
Peter Perkins
Peter Perkins 2016년 2월 24일
That file appears to be not a simple ascii text file. Is this an encoding problem? readtable does have a parameter to control that.

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

답변 (1개)

Anish Mitra
Anish Mitra 2016년 2월 23일
You can try using the Import Tool in MATLAB.
Testing it on the data provided, if the script is generated from the import tool and then executed, the data is imported correctly.
I believe it uses 'textscan' under the hood, with certain character encodings.
Hope this helps.
Anish

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by