Path: news.mathworks.com!not-for-mail
From: "M K" <maha_k@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: alternative to laod file?
Date: Tue, 29 Sep 2009 14:49:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <h9t6ot$6vf$1@fred.mathworks.com>
References: <h9snuj$csk$1@fred.mathworks.com> <d9f2404e-9774-4ee2-bda3-472235cc1296@e8g2000yqo.googlegroups.com> <h9sp5u$7sn$1@fred.mathworks.com> <h9sv4p$8dr$1@fred.mathworks.com>
Reply-To: "M K" <maha_k@mathworks.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1254235741 7151 172.30.248.38 (29 Sep 2009 14:49:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 29 Sep 2009 14:49:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1115780
Xref: news.mathworks.com comp.soft-sys.matlab:573685


Thanks for the replies. The dlmread function isn't happy with my input files. I think the issue is that each of files are approx 1.2GB!!! 

I tried the fscanf function- strangely it doesn't extract the numbers from the ASCII file. My code is below

for u=1:500
  filename=['Rx' num2str(u) '.txt'];
  fid = fopen(filename);
  a = fscanf(fid, '%g %g', [14484 5557]);    % It has 14484 rows x 5557 columns.
  fclose(fid)

end

The above is what I would use instead of D=load(filename) which works for uncorrupt data but sadly not in the corrupt files due to lack of symmetry. 

It seems strange that I can't use the std functions. Would appreciate any thoughts/help on this. Thanks in advance.