Path: news.mathworks.com!not-for-mail
From: "Florian " <florian.soldner@gmx.net>
Newsgroups: comp.soft-sys.matlab
Subject: Trouble importing txt files
Date: Fri, 17 Aug 2007 08:38:55 +0000 (UTC)
Organization: BMW Group
Lines: 35
Message-ID: <fa3mqv$q1c$1@fred.mathworks.com>
Reply-To: "Florian " <florian.soldner@gmx.net>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1187339935 26668 172.30.248.37 (17 Aug 2007 08:38:55 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 17 Aug 2007 08:38:55 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1074292
Xref: news.mathworks.com comp.soft-sys.matlab:424253


Sometimes I've big troubles improting *.txt files.

Normally I use the uiimport to import a file and generate 
the variables in the workspace I need.

I'm using an textfile with the structure

+0.0001042	-0.005223	
+0.000125	-0.003095	
+0.0001458	+0.007835	
+0.0001667	-0.001064	
+0.0001875	+0.02234	
+0.0002083	+0.01422	
+0.0002292	+0.004159	
+0.00025	+0.01606	
+0.0002708	+0.01219	
+0.0002917	+0.007545	
+0.0003125	+0.02186	
+0.0003333	+0.02302	
+0.0003542	+0.02002

but something is wrong with the format. If I use the 
command A = TEXTREAD('01_2.txt')

I'm getting the response:
??? Trouble reading number from file (row 1, field 1) ==> 
+0.0001042	-0.005223	\n

What's wrong with this files? How could I modify this files 
to get them imported into matlab?

Thank you

Florian