Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!j21g2000yqe.googlegroups.com!not-for-mail
From: arun <aragorn168b@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: read
Date: Sun, 16 Aug 2009 20:26:07 -0700 (PDT)
Organization: http://groups.google.com
Lines: 22
Message-ID: <ff239034-779d-4a3c-a3cf-b4e6e15a554d@j21g2000yqe.googlegroups.com>
References: <h6acsh$2c$1@fred.mathworks.com> <h6adn3$mg7$1@news.eternal-september.org> 
	<5778a733-8101-4b16-87c3-08299f831834@n11g2000yqb.googlegroups.com> 
	<h6ah43$pus$1@fred.mathworks.com>
NNTP-Posting-Host: 134.2.247.179
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1250479567 27449 127.0.0.1 (17 Aug 2009 03:26:07 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 17 Aug 2009 03:26:07 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: j21g2000yqe.googlegroups.com; posting-host=134.2.247.179; 
	posting-account=fyqXpgoAAABqt-0BifyaNxmZhzggFACu
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; 
	rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:563826


On Aug 17, 5:00 am, "nachiketha Kukkady" <nachike...@in.com> wrote:
> thank you....
> but this is doing the same work which is being done by fread right????
> what i need is get some required lines like 20th, 34th,56th and so on and finally do some processings with it.... i don't want to use the loop here...
> So what can i do now????

what would be the problem to do it like this from the 'a' obtained
above?
ix = [23 34 45 56]
a = a(ix,:);

file pointer does not give the line number it is in, at least as far
as I know. So, if you want to do this, you must either have full and
absolute information about the format of your file data and probably
use it to calculate the number of byes on each line and then add that
much to your file pointer using feek or have some sort of header
information for the lines you require, to identify them. its a tedious
job and probably slower if your file is too big.

best, arun.