How to read a numeric column from a csv file?

 Respuesta aceptada

Brendan Hamm
Brendan Hamm el 17 de Abr. de 2015

1 voto

csvread only reads in numeric data, so if you do have non-numeric data you can use xlsread on the csv file. There are other lower level options such as textcan which will allow you to specify the format of the data.
If I understand your question properly the data is numeric, but you want the literal string representation of these values? If this is the case consider num2cell.
Here are some useful links:

Más respuestas (0)

Categorías

Más información sobre Data Import and Analysis en Centro de ayuda y File Exchange.

Preguntada:

el 17 de Abr. de 2015

Respondida:

el 17 de Abr. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by