Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: do while
Date: Wed, 12 Aug 2009 18:36:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <h5v22k$bf2$1@fred.mathworks.com>
References: <g0gt2m$h3q$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1250102164 11746 172.30.248.38 (12 Aug 2009 18:36:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 12 Aug 2009 18:36:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1928240
Xref: news.mathworks.com comp.soft-sys.matlab:562805


"Deo " <spliers@hotmail.com> wrote in message <g0gt2m$h3q$1@fred.mathworks.com>...
> is there a matlab command equivalent to the C do while

I thought this was a clever work around 

a = 1
b = 1
for x=(a == b)-1:0 
    if (not done)
        x = x-1;
    end
end