Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extracting data from a text file

Status
Not open for further replies.

MadSplinter

Aerospace
Joined
Aug 28, 2006
Messages
11
Location
IT
Hi all,

I have a text file with this format:

<Text lines>
data1 = fixed format number
data2 = fixed format number
data3 = fixed format number
<Text lines>
data1 = fixed format number
data2 = fixed format number
data3 = fixed format number
<Text lines>
data1 = fixed format number
data2 = fixed format number
data3 = fixed format number
...


I need to extract the data to use them with matlab. The number of text lines between the data sets is not constant, and also the number of data sets in every file is not constant as well.

Any suggestion?



__________________________________________

Everything should be made as easy as possible, but not easier

Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top