Reading CSV file with header and other data
99 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sk Faisal Kabir
am 26 Apr. 2022
Beantwortet: Johannes Hougaard
am 26 Apr. 2022
Hi,
I need help to read the file, I am trying to extract the columns for plotting, but I do not know how to get read of the headers and other information out there in the CSV.
0 Kommentare
Akzeptierte Antwort
Johannes Hougaard
am 26 Apr. 2022
If your header is always the same size you can simply hard code which lines are header lines (in this case 19)
datatable = readtable('UC-SR 58-28 300 S3.csv','NumHeaderLines',19);
plot(datatable.Time_s_,datatable.AxialForce,'-.')
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!