Accelerometer data file correction
이전 댓글 표시
Hi,
My accelerometer writes a .csv log file continuously for 24 h a day that I read into Matlab with the importdata function. Those files contain 10 header lines beginning with a semicolon and the rest is numerical data organized into 4 columns (time,x-axis acceleration, y-axis, z-axis).
My new sensors write an error line sometimes into the data section which also start with a semicolon. Therefore, the importdata function stops reading the data at the point where the error message appears.
Could you please help me in solving this question? I want to read in the file, delete the error message lines and save the file with its original name. csvread and dlmread were not useful in solving this question.
Thanks!
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Import and Export에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!