Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: can not read float numbers from a txt file.
Date: Thu, 13 Aug 2009 19:36:03 +0000 (UTC)
Organization: Pierburg GmbH
Lines: 6
Message-ID: <h61pv2$fpj$1@fred.mathworks.com>
References: <h60m5t$shr$1@fred.mathworks.com> <633bbcda-4d1b-4c9f-a434-761253bb7fe3@d32g2000yqh.googlegroups.com> <34825343-39a1-4a0c-95c3-026df3a2c96e@18g2000yqa.googlegroups.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 1250192163 16179 172.30.248.38 (13 Aug 2009 19:36:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 13 Aug 2009 19:36:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 872224
Xref: news.mathworks.com comp.soft-sys.matlab:563197


Hi,
try

data = txt2mat(filename.txt);

with txt2mat from the file exchange ( http://www.mathworks.de/matlabcentral/fileexchange/18430 ).