Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Reading data
Date: Tue, 20 May 2008 15:17:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 37
Message-ID: <g0uq1g$q12$1@fred.mathworks.com>
References: <g0kgia$nlu$1@fred.mathworks.com> <g0kkuu$47v$1@fred.mathworks.com> <g0kmqt$k8t$1@fred.mathworks.com> <g0koud$ikl$1@fred.mathworks.com> <g0nd2t$7q8$1@fred.mathworks.com> <g0q391$mdt$1@fred.mathworks.com> <g0sosh$ls8$1@fred.mathworks.com> <g0tu4t$bhs$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1211296624 26658 172.30.248.37 (20 May 2008 15:17:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 20 May 2008 15:17:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 498815
Xref: news.mathworks.com comp.soft-sys.matlab:469497



"Andres Toennesmann" <rantore@werb.de> wrote in message
<g0tu4t$bhs$1@fred.mathworks.com>...
> "Hosein " <Kalaeimh@yahoo.com> wrote in message <g0sosh$ls8
> $1@fred.mathworks.com>...
> > [..] however, the waitbar doesn't close until
> > the end of my code. how can I close it after reading the
> > data? I tried 'close' with all its version.
> 
> 
> The waitbar won't survive a
> 
> close all hidden
> 
> afaik. But of course, txt2mat should close the waitbar by 
> itself - and it does so if I let it work on a file with 
> your demo lines. Could it be that the waitbar was left over 
> from some previous erroneous call? Everything else would be 
> a bug and I'd be curious to find out.
> 
> Btw, you can also suppress the waitbar (and any command 
> line output) with the 'Infolevel' argument set to zero, 
> i.e.:
> 
> A = txt2mat('C:\myfile.txt',0,3,'BadLineString', ...
>             {'*','C'}, 'ReadMode','line','Infolevel',0);
> 
> 
> Regards,
> Andres

By this command, the waitbar does not appear even. I want it
to be seen, but after reading data, it is automatically
closed. Probably the reading data is so fast, that is why I
could not see it.

Cheers
hosein