[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## nchoosek question

**From**: |
Frank Palazzolo |

**Subject**: |
nchoosek question |

**Date**: |
Fri, 9 Dec 2005 11:13:20 -0500 |

Hi,
I am using nchoosek(n,k) to generate the number of combinations
n!/(k!(n-k)!).
Unfortunately, it seems there is no vectorized version, for n and k are
vectors or matrices of the same size.
I don't want to generate the actual combinations, which is what nchoosek()
does if you start using vectors. Did matlab decided to use the same
function for two different things? Seems like a bad idea to me. I hate to
iterate through the matrices myself... :(
Thanks,
-Frank
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------

**nchoosek question**,
*Frank Palazzolo* **<=**