combination command

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

Antworten (1)

Jan
Jan am 27 Nov. 2011

0 Stimmen

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 Kommentar

huda nawaf
huda nawaf am 27 Nov. 2011
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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Entering Commands finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 27 Nov. 2011

Community Treasure Hunt

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

Start Hunting!

Translated by