How to read data from csv files containing both text and data
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (2)
Patrick F
am 16 Apr. 2018
Sarah Palfreyman
am 30 Apr. 2018
0 Stimmen
Kategorien
Mehr zu Text Files finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!