From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: regarding random sample and permutation_question rephrasing
Date: Sun, 12 Jun 2011 14:57:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 24
Message-ID: <it2k40$j53$>
References: <it20lh$480$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1307890624 19619 (12 Jun 2011 14:57:04 GMT)
NNTP-Posting-Date: Sun, 12 Jun 2011 14:57:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1636294
Xref: comp.soft-sys.matlab:731565

Dear matlab experts,

I have a problem regarding permutation.
Assuming that I have 11 building blocks A. to K. (see below).
A.	h	d	u	
B.	h	d		
C.	h	u		
D.	u	h		
E.	u	h	d	u
F.	u	h	d	
G.	u	h	u	
H.	d	u		
J.	u	d		
K	d			
L.	u			

 I&#8217;d like to combine them to create a nine-element list. For example, I can select E., D., D., and K. to create: 
u	h	d	u	u	h	u	h	d.

But, the list must have two &#8216;d&#8217;, three &#8216;h&#8217; and four &#8216;u&#8217;. 
Can someone help me out on this. Thanks!