From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: regarding permutation
Date: Sun, 12 Jun 2011 09:25:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 22
Message-ID: <it20lh$480$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1307870705 4352 (12 Jun 2011 09:25:05 GMT)
NNTP-Posting-Date: Sun, 12 Jun 2011 09:25:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1636294
Xref: comp.soft-sys.matlab:731546

Dear matlab experts,
I have a problem regarding permutation.
Assuming that I have 11 building blocks A. to k. (see below), I&#8217;d like to combine them to create a nine-element list, e.g., u	h	d	u	u	h	u	h	d. 

A.	h	d	u
B.	h	d	
C.	h	u	
D.	u	h	d
E.	u	h	d
F.	u	h	u
G.	h	u	
H.	u	h	
I.	d	u	
J.	d		
K.	u		

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