From: "per isakson" <poi1@kth2.se>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to read a particular line
Message-ID: <ef5cbda.0@webcrossing.raydaftYaTP>
Date: Sat, 7 Jul 2007 13:42:28 -0400
References: <1183826686.296756.96900@57g2000hsv.googlegroups.com>
Lines: 31
NNTP-Posting-Host: 130.237.60.110
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:417750



muhdzubair wrote:
>
>
> Hi,
> I want to read the 8th column from the file below:
>
> 52.0 277 177 133 179 105 81 612999 320000
> 147379
> 154795 1238
> 53.0 277 177 133 180 105 81 601314 317429
> 146368
> 153743 1232
> 54.0 276 177 132 181 105 81 589799 314805
> 145321
> 152652 1227
> 55.0 276 177 131 181 105 81 578469 312132
> 144237
> 151521 1221
>
> I tried to use 'textscan' but couldnt get the result..can anyone
> help
> me to read the 8th column and sore in a variable for this
> particular
> case..
> Thanks
>
>
  
textscan( fid, '%*f%*f%*f%*f%*f%*f%*f%f%*f%*f%*f', ... )

should do it / per