How can I extract the numerical data from a text file with inconsistent line formats.

1 view (last 30 days)
hey I just need to know how to extract numerical data from a text file with the format given below.
Time (Seconds): 48.74 Ground Speed (km/h): 155.4280055 G Force Long (G): -1.68 G Force Lat (G): 0.0459610
Time (Seconds): 49.76 Ground Speed (km/h): 164.7261092 G Force Long (G): -1.22 G Force Lat (G): 0.0039610
Time (Seconds): 50.78 Ground Speed (km/h): 184.1244837 G Force Long (G): -1.35 G Force Lat (G): 0.0039610
Time (Seconds): 51.80 Ground Speed (km/h): 173.4225873 G Force Long (G): -1.49 G Force Lat (G): 0.0039610
the text also breaks every 4 lines into the next set of readings. Thanks

Answers (0)

Categories

Find more on Large Files and Big Data in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!