How to delete repeating header lines from text file
Ältere Kommentare anzeigen
I have a text file consisting of a recurring sequence, made up of 4 header lines followed by 37 lines of data, then another 4 header lines, and so on (see attached txt file). One complication is that each set of headers is slightly different since it incorporates varying numbers. I want to delete all of these header lines and be left with the remaining data.
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 15 Sep. 2016
0 Stimmen
Is the "SJSU" always going to be the same? If so then you could perhaps take advantage of the CommentStyle of textscan()
1 Kommentar
Bruno Rodriguez
am 15 Sep. 2016
Kategorien
Mehr zu Data Import and Export finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!