MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > specific tuples generation and counting 

Subject: specific tuples generation and counting From: Michal Kvasnicka Date: 19 Mar, 2013 15:12:11 Message: 1 of 9 
I need to generate all "unique" integer tuples k = (k_1, k_2, ..., k_r) and 
Subject: specific tuples generation and counting From: Michal Kvasnicka Date: 20 Mar, 2013 14:27:08 Message: 2 of 9 
Very rough (extremely ineffective) solution. FOR cycle over 2^nvec1 (nvec = r*maxw) test samples and storage of variable res are really terrible things!!! Is there any more effective way? 
Subject: specific tuples generation and counting From: Michal Kvasnicka Date: 20 Mar, 2013 14:43:10 Message: 3 of 9 
Or same case but with changed limits for first two positions: 
Subject: specific tuples generation and counting From: Bruno Luong Date: 20 Mar, 2013 19:21:06 Message: 4 of 9 
"Michal Kvasnicka" wrote in message <kichtu$sk1$1@newscl01ah.mathworks.com>... 
Subject: specific tuples generation and counting From: Michal Kvasnicka Date: 20 Mar, 2013 20:51:06 Message: 5 of 9 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <kid272$p9t$1@newscl01ah.mathworks.com>... 
Subject: specific tuples generation and counting From: Bruno Luong Date: 21 Mar, 2013 07:18:05 Message: 6 of 9 
Another algorithm 
Subject: specific tuples generation and counting From: Michal Kvasnicka Date: 21 Mar, 2013 11:27:20 Message: 7 of 9 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <kiec7d$m1u$1@newscl01ah.mathworks.com>... 
Subject: specific tuples generation and counting From: Bruno Luong Date: 21 Mar, 2013 11:37:19 Message: 8 of 9 
Sorry the bug is in this line: 
Subject: specific tuples generation and counting From: Michal Kvasnicka Date: 21 Mar, 2013 12:35:06 Message: 9 of 9 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <kierdf$2v1$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.