Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Permutatation of given Matrix with no row repetition
Date: Thu, 15 Dec 2011 00:27:08 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 24
Message-ID: <jcbess$e3m$1@newscl01ah.mathworks.com>
References: <jca22g$bdf$1@newscl01ah.mathworks.com> <jcb4is$cb2$1@newscl01ah.mathworks.com> <jcb91b$qnn$1@newscl01ah.mathworks.com> <jcbapk$2hr$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 1323908828 14454 172.30.248.47 (15 Dec 2011 00:27:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 15 Dec 2011 00:27:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:752408

"Andrea" wrote in message <jcbapk$2hr$1@newscl01ah.mathworks.com>...
> Sorry Roger, but I just noticed that I got the same pattern of 7 values in the first row along all the 224 trials and I want to avoid that. they need to be mixed inside the 7 and along the 224 without adjacent repetitions.
> .....
> but what i need is for example:
>   6     5     1      7      2     4     3       7      2     4     3    6      5     1
- - - - - - - - -
  As I explained earlier, my code was specifically designed to do just that, and this means that I don't understand your original explanation.  You stated that

 2 3 2 5 4 7 6 

would not be suitable, and I presumed you meant that there was a repetition of the 2's within a seven-element interval.  If this were your criterion, then after the first seven values are given in some permutation, all the remaining elements are uniquely determined just as in the case you found:

  6 5 1 7 2 4 3 6 5 1 7 2 4 3 ...

After the 7th element, 3, the only element that can follow without a repetition within a 7-element interval is the 6 again.  The same applies to all remaining values.

  So, what is your criterion?  In fully general terms, what determines when a sequence is suitable and when it is unsuitable?  In your example

 6 5 1 7 2 4 3 7 2 4 3 6 5 1

the sequence 7 2 4 3 immediately repeats itself.  On what grounds is this suitable?  Please show several concrete examples of suitable and unsuitable sequences to illustrate this.

Roger Stafford