<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154699</link>
    <title>MATLAB Central Newsreader - Trouble importing txt files</title>
    <description>Feed for thread: Trouble importing txt files</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 17 Aug 2007 09:21:22 -0400</pubDate>
      <title>Re: Trouble importing txt files</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154699#388099</link>
      <author>Florian </author>
      <description>"us " &amp;lt;us@neurol.unizh.ch&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fa3nlt$5pj$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Florian:&lt;br&gt;
&amp;gt; &amp;lt;SNIP &amp;lt;textread&amp;gt; headache...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; ??? Trouble reading number from file (row 1, field 1) &lt;br&gt;
==&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &#239;&#187;&#191;+0.0001042	-0.005223	\n&lt;br&gt;
&amp;gt; &amp;gt; What's wrong with this files?...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; it seems that you have some extra chars at the end of &lt;br&gt;
your &lt;br&gt;
&amp;gt; text file, which may be due to the UNIX-&amp;gt;DOS text mode &lt;br&gt;
&amp;gt; incompatibility (CR, LF)...&lt;br&gt;
&amp;gt; - do you copy/ftp your files from one OS to the other?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; just a thought&lt;br&gt;
&amp;gt; us&lt;br&gt;
&lt;br&gt;
Florian:&lt;br&gt;
&lt;br&gt;
You're right. I made a copy from the measurement system to &lt;br&gt;
my Laptop. &lt;br&gt;
&lt;br&gt;
Do you know an solution for fixing such a file?&lt;br&gt;
&lt;br&gt;
with best regards&lt;br&gt;
&lt;br&gt;
Florian&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 17 Aug 2007 08:53:17 -0400</pubDate>
      <title>Re: Trouble importing txt files</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154699#388088</link>
      <author>us</author>
      <description>Florian:&lt;br&gt;
&amp;lt;SNIP &amp;lt;textread&amp;gt; headache...&lt;br&gt;
&lt;br&gt;
&amp;gt; ??? Trouble reading number from file (row 1, field 1) ==&amp;gt; &lt;br&gt;
&amp;gt; &#239;&#187;&#191;+0.0001042	-0.005223	\n&lt;br&gt;
&amp;gt; What's wrong with this files?...&lt;br&gt;
&lt;br&gt;
it seems that you have some extra chars at the end of your &lt;br&gt;
text file, which may be due to the UNIX-&amp;gt;DOS text mode &lt;br&gt;
incompatibility (CR, LF)...&lt;br&gt;
- do you copy/ftp your files from one OS to the other?&lt;br&gt;
&lt;br&gt;
just a thought&lt;br&gt;
us&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 17 Aug 2007 08:38:55 -0400</pubDate>
      <title>Trouble importing txt files</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154699#388083</link>
      <author>Florian </author>
      <description>Sometimes I've big troubles improting *.txt files.&lt;br&gt;
&lt;br&gt;
Normally I use the uiimport to import a file and generate &lt;br&gt;
the variables in the workspace I need.&lt;br&gt;
&lt;br&gt;
I'm using an textfile with the structure&lt;br&gt;
&lt;br&gt;
+0.0001042	-0.005223	&lt;br&gt;
+0.000125	-0.003095	&lt;br&gt;
+0.0001458	+0.007835	&lt;br&gt;
+0.0001667	-0.001064	&lt;br&gt;
+0.0001875	+0.02234	&lt;br&gt;
+0.0002083	+0.01422	&lt;br&gt;
+0.0002292	+0.004159	&lt;br&gt;
+0.00025	+0.01606	&lt;br&gt;
+0.0002708	+0.01219	&lt;br&gt;
+0.0002917	+0.007545	&lt;br&gt;
+0.0003125	+0.02186	&lt;br&gt;
+0.0003333	+0.02302	&lt;br&gt;
+0.0003542	+0.02002&lt;br&gt;
&lt;br&gt;
but something is wrong with the format. If I use the &lt;br&gt;
command A = TEXTREAD('01_2.txt')&lt;br&gt;
&lt;br&gt;
I'm getting the response:&lt;br&gt;
??? Trouble reading number from file (row 1, field 1) ==&amp;gt; &lt;br&gt;
&#239;&#187;&#191;+0.0001042	-0.005223	\n&lt;br&gt;
&lt;br&gt;
What's wrong with this files? How could I modify this files &lt;br&gt;
to get them imported into matlab?&lt;br&gt;
&lt;br&gt;
Thank you&lt;br&gt;
&lt;br&gt;
Florian&lt;br&gt;
&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
