| MATLAB Central > MATLAB Newsreader > Combinatorics question |
|
|
|
What would be an efficient way to compute all vectors with |
|
Subject: Combinatorics question From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) Date: 29 Nov, 2007 17:24:49 Message: 2 of 12 |
|
In article <fimps8$7in$1@fred.mathworks.com>, |
|
"Greg von Winckel" <gregvw@gmail.com> wrote in message |
|
"John D'Errico" <woodchips@rochester.rr.com> wrote in |
|
If you consider "natural number" starts from 0, call: |
|
|
|
Same function, slightly improved. |
|
Probably the best I can do: ;-) |
|
Thanks for all the ideas. I will check out your codes. I do |
|
I have submitted my code in FEX. You can also select the |
|
Subject: Combinatorics question From: Greg von Winckel Date: 30 Nov, 2007 10:57:23 Message: 11 of 12 |
|
Bruno, your code is very compact and looks good, although I |
|
"Greg von Winckel" <gregvw@gmail.com> wrote in message |
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.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| vector | Greg von Winckel | 29 Nov, 2007 11:40:18 |
| natural numbers | Greg von Winckel | 29 Nov, 2007 11:40:17 |
| combinatorics | Greg von Winckel | 29 Nov, 2007 11:40:17 |
