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

3 visualizaciones (últimos 30 días)
bmeyer
bmeyer el 18 de Feb. de 2016
Comentada: Peter Perkins el 24 de Feb. de 2016
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 comentarios
bmeyer
bmeyer el 18 de Feb. de 2016
File should be attached here. Not sure why it didn't attach to the original question
Peter Perkins
Peter Perkins el 24 de Feb. de 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.

Iniciar sesión para comentar.

Respuestas (1)

Anish Mitra
Anish Mitra el 23 de Feb. de 2016
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

Categorías

Más información sobre Data Import and Analysis en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by