Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Reading data
Date: Tue, 20 May 2008 07:21:01 +0000 (UTC)
Organization: Pierburg GmbH
Lines: 27
Message-ID: <g0tu4t$bhs$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>
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 1211268061 11836 172.30.248.37 (20 May 2008 07:21:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 20 May 2008 07:21:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 872224
Xref: news.mathworks.com comp.soft-sys.matlab:469403



"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