Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: waitbar for parfor loops
Date: Fri, 21 Mar 2008 18:07:02 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 29
Message-ID: <fs0tg5$qdq$1@fred.mathworks.com>
References: <fs0m5p$nkd$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 1206122822 27066 172.30.248.37 (21 Mar 2008 18:07:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 21 Mar 2008 18:07:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 953109
Xref: news.mathworks.com comp.soft-sys.matlab:458518



William,

Currently, there is unfortunately no way of receiving
notification in the MATLAB client when an iteration is
completed on a worker.

Best,

Narfi
"William Dampier" <walldo2@gmail.com> wrote in message
<fs0m5p$nkd$1@fred.mathworks.com>...
> I was wondering if anyone has found a way to do progressbars
> for the new parfor loops in R2007b and 2008a.
> 
> For normal for-loops the simple waitbar command works well.
> waitbar(0)
> for i=1:N
> waitbar(i/N)
> ...do something
> end
> 
> however it doesn't work with the parfor loops, since things
> aren't done in order.
> 
> Has anybody made a function or found a work-around?
> 
> Thanks
> Will