Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to extract data out of a text file
Date: Tue, 14 Oct 2008 07:01:03 +0000 (UTC)
Organization: Pierburg GmbH
Lines: 7
Message-ID: <gd1g3f$5ih$1@fred.mathworks.com>
References: <gd08nd$dsr$1@fred.mathworks.com> <gd0abt$1ro$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1223967663 5713 172.30.248.38 (14 Oct 2008 07:01:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 14 Oct 2008 07:01:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 872224
Xref: news.mathworks.com comp.soft-sys.matlab:495015


"Andres " <rantore@werb.deNoRs> wrote in message <gd0abt$1ro$1@fred.mathworks.com>...
> [..]
> A = txt2mat('C:\filename.txt');
> [..]

A small correction: rather tell txt2mat the number of header lines (zero, I guess), to ensure that the first two lines with the single numbers are imported to A as well:
A = txt2mat('C:\filename.txt',0);