Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: read
Date: Mon, 17 Aug 2009 02:17:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 29
Message-ID: <h6aej0$h31$1@fred.mathworks.com>
References: <h6acsh$2c$1@fred.mathworks.com> <h6adn3$mg7$1@news.eternal-september.org>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1250475424 17505 172.30.248.37 (17 Aug 2009 02:17:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 17 Aug 2009 02:17:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1921800
Xref: news.mathworks.com comp.soft-sys.matlab:563817


dpb <none@non.net> wrote in message <h6adn3$mg7$1@news.eternal-september.org>...
> nachiketha Kukkady wrote:
> > Hi.... I've a matlab file which contains few numbers(float) in about
> > 75 lines... how do i read a individual line so that i can later
> > process with these obtained numbers from some particular lines... i
> > did try with fgetl but that gives only the first line.. or maybe i
> > couldn't use it properly.... could somebody help me with this?? Thank
> > you in advance....
> 
> Typically fgetl() is used in a loop.
> 
> Alternatively, w/ ML it may be simpler and just as quick to read the 
> whole array and then discard the portion you don't want.
> 
> --

Thank you for that reply....
Yeah i've already the whole page or file containing those numbers.... 
my file is something like this.....
259.975 262.41
269.273 338.54
276.828 369.921
287.87 404.79
306.466 435.59
330.874 461.161
364.581 480.338.............
i will be needing line 2, line 5 and so on for further calculations....
As i said i've read the file using fread command.... but i don't know how exactly to remove the lines which i don't need.....
thank you....