天天看点

MATLAB排列组合函数--nchoosek

MATLAB函数中用nchoosek 来实现二项式系数或所有组合

语法:

C = nchoosek(n,k)

C = nchoosek(v,k)