Does not properly read csv file
Mostrar comentarios más antiguos
I try to read the attached csv file using readtable. But the data does not seem to be read. What can be done?
Respuesta aceptada
Más respuestas (1)
Thomas Jensen
el 14 de Abr. de 2021
0 votos
Hi,
Try to use readtable('test.csv','Format','%s,%s'). It will force the data to be treated as text.
Since you columns are mixing number and date values, it is better to keep it as char and post-process it later.
1 comentario
alpedhuez
el 14 de Abr. de 2021
Categorías
Más información sobre Text Files en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!