Trouble with csvread and readtable (see attached .csv file)
Show older comments
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 Comments
bmeyer
on 18 Feb 2016
Peter Perkins
on 24 Feb 2016
That file appears to be not a simple ascii text file. Is this an encoding problem? readtable does have a parameter to control that.
Answers (1)
Anish Mitra
on 23 Feb 2016
0 votes
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
Categories
Find more on Text Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!