Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: repetitive counter (GUI)
Date: Tue, 14 Jul 2009 09:39:18 -0400
Organization: The MathWorks, Inc.
Lines: 29
Message-ID: <h3i1oe$q5s$1@fred.mathworks.com>
References: <h3g5v9$6ep$1@fred.mathworks.com> <h3g6rd$58f$1@fred.mathworks.com> <h3g7ie$mr4$1@fred.mathworks.com> <h3g8bd$lin$1@news.eternal-september.org> <h3hbh5$ljn$1@fred.mathworks.com> <h3hgfb$96h$1@news.eternal-september.org> <h3i04f$90p$1@fred.mathworks.com> <h3i1jj$r9o$1@news.eternal-september.org>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1247578702 26812 144.212.105.187 (14 Jul 2009 13:38:22 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 14 Jul 2009 13:38:22 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:555332



"dpb" <none@non.net> wrote in message 
news:h3i1jj$r9o$1@news.eternal-september.org...
> ching l wrote:

*snip*

>>> --Thanks. I understand why it increases to 3 now, but I suppose it
> should jump to the "else" section when the counter reaches 3 and not
> repeating the counter again?
>>
>> Counter= 3 occurs twice. Which part did I miss again?
>
> OK, I didn't look at the output; I thought the question was "why 3"?
>
> Hmmm....that's not clear to me from the posted code, either.
>
> Are you sure there isn't something not in this code that took one off it 
> or another line that outputs it on that condition?

I also suspect that there's a line of code later on in the function that 
displays the counter variable, probably inserted to try to diagnose another 
problem (or perhaps to try to diagnose this problem.)

-- 
Steve Lord
slord@mathworks.com