Accelerometer data file correction
Afficher commentaires plus anciens
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!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Data Import and Export dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!