File should be attached here. Not sure why it didn't attach to the original question
Trouble with csvread and readtable (see attached .csv file)
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
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
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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Text Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!