MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > combination from possible numbers 

Subject: combination from possible numbers From: omegayen Date: 10 Jun, 2011 19:51:05 Message: 1 of 9 
Hi, 
Subject: combination from possible numbers From: Shawn Bonneau Date: 10 Jun, 2011 20:07:40 Message: 2 of 9 
There is a perms function which will in general do what you want, but it has 
Subject: combination from possible numbers From: Shawn Bonneau Date: 10 Jun, 2011 20:14:51 Message: 3 of 9 
By the way, the script I just made up to do this only took about 2 minutes 
omegayen wrote: 
Subject: combination from possible numbers From: Shawn Bonneau Date: 10 Jun, 2011 20:18:38 Message: 5 of 9 
It looks like I misread the problem. If you have varying numbers of 2s and 
Shawn Bonneau wrote: 
Subject: combination from possible numbers From: ImageAnalyst Date: 10 Jun, 2011 21:21:27 Message: 7 of 9 
If there are 3 possible states (1, 2, or 3) and 25 slots, then there 
Subject: combination from possible numbers From: Steven_Lord Date: 13 Jun, 2011 03:13:01 Message: 8 of 9 

Subject: combination from possible numbers From: omegayen Date: 13 Jun, 2011 18:05:14 Message: 9 of 9 
"Steven_Lord" <slord@mathworks.com> wrote in message <it3v7u$lo$1@newscl01ah.mathworks.com>... 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.