Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!postnews.google.com!w39g2000prb.googlegroups.com!not-for-mail
From: supandey@yahoo.com
Newsgroups: comp.soft-sys.matlab
Subject: Re: textread - recall last position
Date: Wed, 11 Feb 2009 13:33:09 -0800 (PST)
Organization: http://groups.google.com
Lines: 32
Message-ID: <b9f14884-002b-4cfe-b5ee-751ed6a1c3e3@w39g2000prb.googlegroups.com>
References: <dc52385c-cfea-4944-b563-bcc8c1a9a27c@g1g2000pra.googlegroups.com> 
	<9947e827-8403-4016-ab42-696e4ad22caf@x6g2000pre.googlegroups.com>
NNTP-Posting-Host: 67.200.102.202
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1234387990 1954 127.0.0.1 (11 Feb 2009 21:33:10 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 11 Feb 2009 21:33:10 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: w39g2000prb.googlegroups.com; posting-host=67.200.102.202; 
	posting-account=XCKuqgkAAABrNMgKkm-of-H0byX2WHJW
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 
	1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; 
	.NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:517726


On Feb 11, 1:25=A0pm, NZTideMan <mul...@gmail.com> wrote:
> On Feb 12, 8:22=A0am, supan...@yahoo.com wrote:
>
>
>
>
>
> > Is it possible for textread to read from the last poistion it read
> > from? For file -
>
> > %test
> > 10,20,30
> > 40,50,60
>
> > I can read via:
>
> > [x1,x2,x3] =3D textread('t.txt','%d%d%d',
> > 1,'delimiter',',','commentstyle','matlab');
> > [y1,y2,y3] =3D textread('t.txt','%d%d%d',
> > 1,'delimiter',',','commentstyle','matlab', 'headerlines', 2);
>
> > Is there another solution which avoids using headerlines? Something
> > like fseek/ftell?
>
> > Thanks,
> > Sanjeev
>
> Use textscan for this- Hide quoted text -
>
> - Show quoted text -

Unfortunately my version of Matlab (v6.5) does not have textscan.