How to read a numeric column from a csv file?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mr M.
el 17 de Abr. de 2015
Respondida: Brendan Hamm
el 17 de Abr. de 2015
The csv file contains non-numeric values also, but I need a numeric column to read out.
0 comentarios
Respuesta aceptada
Brendan Hamm
el 17 de Abr. de 2015
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:
0 comentarios
Más respuestas (0)
Ver también
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!