Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Can you do this with load?
Date: Tue, 27 May 2008 13:07:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 20
Message-ID: <g1h11m$mm6$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
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 1211893622 23238 172.30.248.35 (27 May 2008 13:07:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 27 May 2008 13:07:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:470596



I have a file like this

1 2 3
1 2 3 4 5 6
1 2 3 4 5 6
1 2 3 4 5 6
1 2 3 4 5 6
(etc. 1000's of lines like the previous)

where the first line is shorter than the rest.

Is there a way with load() to say "Its ok, just fill in NaN
for the missing numbers? It just seems better to read this
file with load instead of writing a loop and using fscanf.

Thoughts?

Thanks,

Dave