Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: read large text files
Date: Wed, 28 Oct 2009 01:14:04 +0000 (UTC)
Organization: NYC Dept of Environmental Protection
Lines: 15
Message-ID: <hc85sr$f4q$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1256692444 15514 172.30.248.35 (28 Oct 2009 01:14:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 28 Oct 2009 01:14:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1849803
Xref: news.mathworks.com comp.soft-sys.matlab:580485


Hi ,

I have text files having 6 columns of data, but the number of rows is greater than 100000. I do not know the exact row number.

When I use this prog I am able to get upto 100000 rows. How to get the rows beyond this till the end of file?

block_size = 100000;
format = '%f %f %f %f %f %f';
file_id = fopen(fno{i});
cnt=0;
segarray = textscan(file_id, format, block_size); 

thanks in advance for the support

anandhi