天天看點

MATLAB排列組合函數--nchoosek

MATLAB函數中用nchoosek 來實作二項式系數或所有組合

文法:

C = nchoosek(n,k)

C = nchoosek(v,k)