Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!27g2000hsf.googlegroups.com!not-for-mail
From: Rune Allnor <allnor@tele.ntnu.no>
Newsgroups: comp.soft-sys.matlab
Subject: Re: extract dynamically the headerlines row numvber by string/number 
Date: Sun, 29 Jun 2008 12:15:49 -0700 (PDT)
Organization: http://groups.google.com
Lines: 19
Message-ID: <702f6ffa-9a85-4d4d-8139-0b13f0947d08@27g2000hsf.googlegroups.com>
References: <2924bec5-2274-4b3b-8354-20b34f59add2@m3g2000hsc.googlegroups.com>
NNTP-Posting-Host: 212.17.141.54
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1214766949 20200 127.0.0.1 (29 Jun 2008 19:15:49 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 29 Jun 2008 19:15:49 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 27g2000hsf.googlegroups.com; posting-host=212.17.141.54; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
Xref: news.mathworks.com comp.soft-sys.matlab:476488



On 29 Jun, 20:27, Engeltje <Engeltj...@gmail.com> wrote:
> hi, everybody...I had a problem.
> I work with some namefile.tsv (a kind of txt files) that arecomposed
> by some headerlines, containg string values and number values in Date
> format and in the end of the file it contains some numerical colomns.
> I want
> either the row number of the begin of these numerical data, descarting
> the headerlines, end the row number of the end of the file
> or just the numbers contained in the end of the file disposed as a
> table.
>
> How can I obtain that dynamically? tha is create a function that do
> this work for different file with different numbers of headerlines?

If you know the format of the table you are looking for,
you can use a regular expression to search for it, and
discard the lines that don't match the pattern.

Rune