<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169426</link>
    <title>MATLAB Central Newsreader - &quot;reading data from text file&quot;</title>
    <description>Feed for thread: &quot;reading data from text file&quot;</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by 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>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 16 May 2008 17:34:02 -0400</pubDate>
      <title>&quot;reading data from text file&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169426#432563</link>
      <author>Hosein </author>
      <description>I have a text file as follows:&lt;br&gt;
&lt;br&gt;
CC&lt;br&gt;
CC&lt;br&gt;
*----&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2 3&lt;br&gt;
34 6&lt;br&gt;
CC&lt;br&gt;
*---&lt;br&gt;
2.2 3.3 4.4&lt;br&gt;
&lt;br&gt;
how can I read just numbers? or how can I ask matlab to&lt;br&gt;
ignore all lines started by 'CC' and read data after lines&lt;br&gt;
started by '*'? (Also, what about spaces?)&lt;br&gt;
I want to read each line individually.&lt;br&gt;
if anybody can write some lines of a code to read even above&lt;br&gt;
example, I will appreciate.&lt;br&gt;
(I already read the example regarding to 'textread' and&lt;br&gt;
'textscan'. but I did not find anything clear.)</description>
    </item>
    <item>
      <pubDate>Fri, 16 May 2008 18:49:02 -0400</pubDate>
      <title>Re:</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169426#432576</link>
      <author>Andres Toennesmann</author>
      <description>&quot;Hosein &quot; &amp;lt;Kalaeimh@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g0kgia$nlu$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I have a text file as follows:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; CC&lt;br&gt;
&amp;gt; CC&lt;br&gt;
&amp;gt; *----&lt;br&gt;
&amp;gt;     2 3&lt;br&gt;
&amp;gt; 34 6&lt;br&gt;
&amp;gt; CC&lt;br&gt;
&amp;gt; *---&lt;br&gt;
&amp;gt; 2.2 3.3 4.4&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; [...]&lt;br&gt;
&amp;gt; if anybody can write some lines of a code to read even above&lt;br&gt;
&amp;gt; example, I will appreciate.&lt;br&gt;
&amp;gt; (I already read the example regarding to 'textread' and&lt;br&gt;
&amp;gt; 'textscan'. but I did not find anything clear.)&lt;br&gt;
&lt;br&gt;
A = txt2mat('C:\myfile.txt',0,-3,'BadLineString',{'*','C'});&lt;br&gt;
&lt;br&gt;
is a possible one-liner solution. txt2mat can be found on&lt;br&gt;
the file exchange (see its help for details).&lt;br&gt;
&lt;br&gt;
Hth,&lt;br&gt;
regards&lt;br&gt;
Andres</description>
    </item>
    <item>
      <pubDate>Fri, 16 May 2008 19:21:02 -0400</pubDate>
      <title>Re:</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169426#432581</link>
      <author>Hosein </author>
      <description>&quot;Andres Toennesmann&quot; &amp;lt;rantore@werb.de&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g0kkuu$47v$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Hosein &quot; &amp;lt;Kalaeimh@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;g0kgia$nlu$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; I have a text file as follows:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; CC&lt;br&gt;
&amp;gt; &amp;gt; CC&lt;br&gt;
&amp;gt; &amp;gt; *----&lt;br&gt;
&amp;gt; &amp;gt;     2 3&lt;br&gt;
&amp;gt; &amp;gt; 34 6&lt;br&gt;
&amp;gt; &amp;gt; CC&lt;br&gt;
&amp;gt; &amp;gt; *---&lt;br&gt;
&amp;gt; &amp;gt; 2.2 3.3 4.4&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; [...]&lt;br&gt;
&amp;gt; &amp;gt; if anybody can write some lines of a code to read even above&lt;br&gt;
&amp;gt; &amp;gt; example, I will appreciate.&lt;br&gt;
&amp;gt; &amp;gt; (I already read the example regarding to 'textread' and&lt;br&gt;
&amp;gt; &amp;gt; 'textscan'. but I did not find anything clear.)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; A = txt2mat('C:\myfile.txt',0,-3,'BadLineString',{'*','C'});&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; is a possible one-liner solution. txt2mat can be found on&lt;br&gt;
&amp;gt; the file exchange (see its help for details).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hth,&lt;br&gt;
&amp;gt; regards&lt;br&gt;
&amp;gt; Andres&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I is not working. There is something wrong with the command</description>
    </item>
    <item>
      <pubDate>Fri, 16 May 2008 19:57:01 -0400</pubDate>
      <title>Reading data</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169426#432583</link>
      <author>Hosein </author>
      <description>&quot;Hosein &quot; &amp;lt;Kalaeimh@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g0kmqt$k8t$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Andres Toennesmann&quot; &amp;lt;rantore@werb.de&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;g0kkuu$47v$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Hosein &quot; &amp;lt;Kalaeimh@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;g0kgia$nlu$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I have a text file as follows:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; CC&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; CC&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; *----&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;     2 3&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 34 6&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; CC&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; *---&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 2.2 3.3 4.4&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; [...]&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; if anybody can write some lines of a code to read even&lt;br&gt;
above&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; example, I will appreciate.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; (I already read the example regarding to 'textread' and&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 'textscan'. but I did not find anything clear.)&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; A = txt2mat('C:\myfile.txt',0,-3,'BadLineString',{'*','C'});&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; is a possible one-liner solution. txt2mat can be found on&lt;br&gt;
&amp;gt; &amp;gt; the file exchange (see its help for details).&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Hth,&lt;br&gt;
&amp;gt; &amp;gt; regards&lt;br&gt;
&amp;gt; &amp;gt; Andres&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I is not working. There is something wrong with the command&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
would you please 'somebody' help me? I am waiting.&lt;br&gt;
somebody, anybody....</description>
    </item>
    <item>
      <pubDate>Fri, 16 May 2008 20:29:01 -0400</pubDate>
      <title>Reading data</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169426#432590</link>
      <author>someone </author>
      <description>&quot;Hosein &quot; &amp;lt;Kalaeimh@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g0koud$ikl$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Hosein &quot; &amp;lt;Kalaeimh@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;g0kmqt$k8t$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Andres Toennesmann&quot; &amp;lt;rantore@werb.de&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;g0kkuu$47v$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &quot;Hosein &quot; &amp;lt;Kalaeimh@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;lt;g0kgia$nlu$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; I have a text file as follows:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; CC&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; CC&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; *----&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     2 3&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; 34 6&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; CC&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; *---&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; 2.2 3.3 4.4&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; [...]&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; if anybody can write some lines of a code to read &lt;br&gt;
even&lt;br&gt;
&amp;gt; above&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; example, I will appreciate.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (I already read the example regarding to 'textread' &lt;br&gt;
and&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; 'textscan'. but I did not find anything clear.)&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; A = txt2mat('C:\myfile.txt',0,-3,'BadLineString',&lt;br&gt;
{'*','C'});&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; is a possible one-liner solution. txt2mat can be &lt;br&gt;
found on&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; the file exchange (see its help for details).&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Hth,&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; regards&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Andres&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I is not working. There is something wrong with the &lt;br&gt;
command&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; would you please 'somebody' help me? I am waiting.&lt;br&gt;
&amp;gt; somebody, anybody....&lt;br&gt;
&lt;br&gt;
How do you know it is not working?&lt;br&gt;
&lt;br&gt;
What error message did you get?&lt;br&gt;
&lt;br&gt;
It's not easy for us to read your mind!</description>
    </item>
    <item>
      <pubDate>Fri, 16 May 2008 21:05:40 -0400</pubDate>
      <title>Re: Reading data</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169426#432596</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Hosein &quot; &amp;lt;Kalaeimh@yahoo.com&amp;gt; wrote in message &lt;br&gt;
news:g0koud$ikl$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &quot;Hosein &quot; &amp;lt;Kalaeimh@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;g0kmqt$k8t$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; &quot;Andres Toennesmann&quot; &amp;lt;rantore@werb.de&amp;gt; wrote in message&lt;br&gt;
&amp;gt;&amp;gt; &amp;lt;g0kkuu$47v$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; &quot;Hosein &quot; &amp;lt;Kalaeimh@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; &amp;lt;g0kgia$nlu$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&lt;br&gt;
*snip*&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; A = txt2mat('C:\myfile.txt',0,-3,'BadLineString',{'*','C'});&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; is a possible one-liner solution. txt2mat can be found on&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; the file exchange (see its help for details).&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; Hth,&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; regards&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; Andres&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; I is not working. There is something wrong with the command&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; would you please 'somebody' help me? I am waiting.&lt;br&gt;
&amp;gt; somebody, anybody....&lt;br&gt;
&lt;br&gt;
Note that Andres indicated that txt2mat is on the file exchange &lt;br&gt;
(&lt;a href=&quot;http://www.mathworks.com/matlabcentral)&quot;&gt;http://www.mathworks.com/matlabcentral)&lt;/a&gt; -- it is not part of MATLAB itself, &lt;br&gt;
but a user-contributed file.  You will need to download it to a work &lt;br&gt;
directory before using it.  This is likely the reason it is &quot;not working&quot;.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Sat, 17 May 2008 19:53:01 -0400</pubDate>
      <title>Reading data</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169426#432686</link>
      <author>Andres Toennesmann</author>
      <description>&quot;Hosein &quot; &amp;lt;Kalaeimh@yahoo.com&amp;gt; wrote in message &lt;br&gt;
[..]&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I is not working. There is something wrong with the command&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; would you please 'somebody' help me? I am waiting.&lt;br&gt;
&amp;gt; somebody, anybody....&lt;br&gt;
&lt;br&gt;
I'm sorry I can't check by myself right now. Maybe a hint to&lt;br&gt;
another solution, using the built-in textscan:&lt;br&gt;
As I'm not sure if textscan supports multiple 'CommentStyle'&lt;br&gt;
parameters (which would have done the job similar to the&lt;br&gt;
multiple 'BadLineString' arguments in txt2mat), you could&lt;br&gt;
write a small funtion that reads your file as a string via&lt;br&gt;
fread, for example, removes those 'CC' and '*----' lines by&lt;br&gt;
strrep &quot;manually&quot; and then applies textscan to the string.&lt;br&gt;
See the respective manual pages please.&lt;br&gt;
Good luck!&lt;br&gt;
Regards&lt;br&gt;
Andres</description>
    </item>
    <item>
      <pubDate>Sun, 18 May 2008 20:24:01 -0400</pubDate>
      <title>Reading data</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169426#432772</link>
      <author>Andres Toennesmann</author>
      <description>&amp;gt; &quot;Hosein &quot; &amp;lt;Kalaeimh@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; [..]&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I is not working. There is something wrong with the&lt;br&gt;
command&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; would you please 'somebody' help me? I am waiting.&lt;br&gt;
&amp;gt; &amp;gt; somebody, anybody....&lt;br&gt;
&lt;br&gt;
Just guessing about your problem:&lt;br&gt;
If&lt;br&gt;
&lt;br&gt;
A = txt2mat('C:\myfile.txt',0,3,'BadLineString', ...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{'*','C'}, 'ReadMode','line');&lt;br&gt;
&lt;br&gt;
runs properly, it might be an issue with the current fex&lt;br&gt;
version of txt2mat (about translating the version number&lt;br&gt;
string :-( ). An interim fix is on its way to the fex.&lt;br&gt;
If you like, contact me via the fex form, or please provide&lt;br&gt;
some more error details here.&lt;br&gt;
Regards&lt;br&gt;
Andres</description>
    </item>
    <item>
      <pubDate>Mon, 19 May 2008 20:45:05 -0400</pubDate>
      <title>Reading data</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169426#433013</link>
      <author>Hosein </author>
      <description>&quot;Andres Toennesmann&quot; &amp;lt;rantore@werb.de&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g0q391$mdt$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Hosein &quot; &amp;lt;Kalaeimh@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;gt; [..]&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; I is not working. There is something wrong with the&lt;br&gt;
&amp;gt; command&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; would you please 'somebody' help me? I am waiting.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; somebody, anybody....&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Just guessing about your problem:&lt;br&gt;
&amp;gt; If&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; A = txt2mat('C:\myfile.txt',0,3,'BadLineString', ...&lt;br&gt;
&amp;gt;             {'*','C'}, 'ReadMode','line');&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; runs properly, it might be an issue with the current fex&lt;br&gt;
&amp;gt; version of txt2mat (about translating the version number&lt;br&gt;
&amp;gt; string :-( ). An interim fix is on its way to the fex.&lt;br&gt;
&amp;gt; If you like, contact me via the fex form, or please provide&lt;br&gt;
&amp;gt; some more error details here.&lt;br&gt;
&amp;gt; Regards&lt;br&gt;
&amp;gt; Andres&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
Thank you very much for your comments. the last comments&lt;br&gt;
solved my problem, however, the waitbar doesn't close until&lt;br&gt;
the end of my code. how can I close it after reading the&lt;br&gt;
data? I tried 'close' with all its version.</description>
    </item>
    <item>
      <pubDate>Tue, 20 May 2008 07:21:01 -0400</pubDate>
      <title>Reading data</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169426#433057</link>
      <author>Andres Toennesmann</author>
      <description>&quot;Hosein &quot; &amp;lt;Kalaeimh@yahoo.com&amp;gt; wrote in message &amp;lt;g0sosh$ls8&lt;br&gt;
$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; [..] however, the waitbar doesn't close until&lt;br&gt;
&amp;gt; the end of my code. how can I close it after reading the&lt;br&gt;
&amp;gt; data? I tried 'close' with all its version.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
The waitbar won't survive a&lt;br&gt;
&lt;br&gt;
close all hidden&lt;br&gt;
&lt;br&gt;
afaik. But of course, txt2mat should close the waitbar by &lt;br&gt;
itself - and it does so if I let it work on a file with &lt;br&gt;
your demo lines. Could it be that the waitbar was left over &lt;br&gt;
from some previous erroneous call? Everything else would be &lt;br&gt;
a bug and I'd be curious to find out.&lt;br&gt;
&lt;br&gt;
Btw, you can also suppress the waitbar (and any command &lt;br&gt;
line output) with the 'Infolevel' argument set to zero, &lt;br&gt;
i.e.:&lt;br&gt;
&lt;br&gt;
A = txt2mat('C:\myfile.txt',0,3,'BadLineString', ...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{'*','C'}, 'ReadMode','line','Infolevel',0);&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
Andres</description>
    </item>
    <item>
      <pubDate>Tue, 20 May 2008 15:17:04 -0400</pubDate>
      <title>Reading data</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169426#433151</link>
      <author>Hosein </author>
      <description>&quot;Andres Toennesmann&quot; &amp;lt;rantore@werb.de&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g0tu4t$bhs$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Hosein &quot; &amp;lt;Kalaeimh@yahoo.com&amp;gt; wrote in message &amp;lt;g0sosh$ls8&lt;br&gt;
&amp;gt; $1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; [..] however, the waitbar doesn't close until&lt;br&gt;
&amp;gt; &amp;gt; the end of my code. how can I close it after reading the&lt;br&gt;
&amp;gt; &amp;gt; data? I tried 'close' with all its version.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The waitbar won't survive a&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; close all hidden&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; afaik. But of course, txt2mat should close the waitbar by &lt;br&gt;
&amp;gt; itself - and it does so if I let it work on a file with &lt;br&gt;
&amp;gt; your demo lines. Could it be that the waitbar was left over &lt;br&gt;
&amp;gt; from some previous erroneous call? Everything else would be &lt;br&gt;
&amp;gt; a bug and I'd be curious to find out.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Btw, you can also suppress the waitbar (and any command &lt;br&gt;
&amp;gt; line output) with the 'Infolevel' argument set to zero, &lt;br&gt;
&amp;gt; i.e.:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; A = txt2mat('C:\myfile.txt',0,3,'BadLineString', ...&lt;br&gt;
&amp;gt;             {'*','C'}, 'ReadMode','line','Infolevel',0);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Regards,&lt;br&gt;
&amp;gt; Andres&lt;br&gt;
&lt;br&gt;
By this command, the waitbar does not appear even. I want it&lt;br&gt;
to be seen, but after reading data, it is automatically&lt;br&gt;
closed. Probably the reading data is so fast, that is why I&lt;br&gt;
could not see it.&lt;br&gt;
&lt;br&gt;
Cheers&lt;br&gt;
hosein</description>
    </item>
  </channel>
</rss>

