Reading CSV file with header and other data
99 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Johannes Hougaard
2022-4-26
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!