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$>
References: <is8sko$moh$> <is8t9c$oml$> <is8ud0$ruu$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1307058844 22441 (2 Jun 2011 23:54:04 GMT)
NNTP-Posting-Date: Thu, 2 Jun 2011 23:54:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: comp.soft-sys.matlab:729974

"Gareth Lennox" <> wrote in message <is8ud0$ruu$>...
> 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