Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • 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
Aug 28, 2006
11
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