```Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: vertorize a loop
Date: Thu, 2 Jun 2011 23:54:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 6
Message-ID: <is97qs\$lt9\$1@newscl01ah.mathworks.com>
References: <is8sko\$moh\$1@newscl01ah.mathworks.com> <is8t9c\$oml\$1@newscl01ah.mathworks.com> <is8ud0\$ruu\$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1307058844 22441 172.30.248.47 (2 Jun 2011 23:54:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 2 Jun 2011 23:54:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:729974

"Gareth Lennox" <celtlen@yahoo.co.uk> wrote in message <is8ud0\$ruu\$1@newscl01ah.mathworks.com>...
> Basically, for each iteration, the feasible solutions would be extended to produce all solutions with one more variable.
- - - - - - - -
I think you still have some explaining to do, Gareth.  In your first example, 5 occurred at the end of the 'x' list and was apparently used as a limit in the second column of x1, whereas in the second example 5 again was at the end of the x list but in the second column of x1 the limit used was 6.  What is the logic involved?  I can think of many possibilities but we shouldn't have to guess about such things.  Perhaps the best thing you can do is to give us the "loop" you mentioned so as to hopefully answer all such questions.

Roger Stafford
```