combination command

hi,
is there command compute combination ,for example comp. 4 of 20
thanks

回答(1 个)

Jan
Jan 2011-11-27

0 个投票

What is the expected output? The number of combinations or a matrix of combinations itself? Do you want repetitions or not?
For some of these questions nchoosek is the needed function. For the others you find several tools in the FEX.

1 个评论

thanks ,
nchoosek what I need , but need to see the cominations
ex. comb. 2 of 3
abc
ab,cb,ac
also, I need permutation command

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Discrete Math 的更多信息

标签

提问:

2011-11-27

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by