Reading CSV file with header and other data
조회 수: 97 (최근 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!