How to read data from csv files containing both text and data
Mostrar comentarios más antiguos
I tried to use csvread but from the forum, it seems that I should use textscan to read the values when there is also text in the csv file: However, I don't understand what to put in argument of the function, especially when it comes to specifiers. I would like to have a matrix with my data. The .csv file is attached.
This is what I have tried so far. M = textscan('test.csv','%s %s %s %s')
I work on MATLAB 2014a
Respuesta aceptada
Más respuestas (2)
Patrick F
el 16 de Abr. de 2018
Sarah Palfreyman
el 30 de Abr. de 2018
0 votos
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!