Path: news.mathworks.com!not-for-mail
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$1@newscl01ah.mathworks.com>
References: <it20lh$480$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1307890624 19619 172.30.248.37 (12 Jun 2011 14:57:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 12 Jun 2011 14:57:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1636294
Xref: news.mathworks.com 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!
Sincerely,
Yihui