I have a text file with multiple sections of observations. Each time, when the new observation starts, the file have some information for the data following (like header of a file).
When I used textscan
, I could only able to read the first section only. For example, the data is arranged as follows:
1993-01-31 17:00:00.000 031 -61.00
1993-01-31 18:00:00.000 031 -55.00
1993-01-31 19:00:00.000 031 -65.00
Format
Source of Data
Station Name
Data Interval Type 1-hour
Data Type Final
1993-02-01 00:00:00.000 032 -83.00
1993-02-01 01:00:00.000 032 -70.00
1993-02-01 02:00:00.000 032 -64.00
From above, I only want to read data lines starting with '1993' by ignoring the block of text in the middle.