Path: news.mathworks.com!newsfeed-00.mathworks.com!oleane.net!oleane!news.in2p3.fr!in2p3.fr!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!not-for-mail
From: dpb <none@non.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: read
Date: Sun, 16 Aug 2009 20:58:13 -0500
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <h6adn3$mg7$1@news.eternal-september.org>
References: <h6acsh$2c$1@fred.mathworks.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org U2FsdGVkX19oBlunhvv5P/86XFCavMgv80l04PFcw2zPo5b9aH3+WRpEpUb7vtc3WQ2F2YmIcWYRL9OZHJkfIcBHov/2sJIc4xkPOEIpZDGhp9vTL36PJB5CrlVjuYm6NUn7RRyJd1iNzzkm3NdtSQ==
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Mon, 17 Aug 2009 02:02:12 +0000 (UTC)
In-Reply-To: <h6acsh$2c$1@fred.mathworks.com>
X-Auth-Sender: U2FsdGVkX1+1VvL8o+v6TK4PCXAtkcY0GZFhuKLVXoo=
Cancel-Lock: sha1:8DZuzELO1y7NWcyybUL2GeHA2sI=
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
Xref: news.mathworks.com comp.soft-sys.matlab:563813


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.

--