nCk(n,k)
バージョン 1.0.0.0 (830 Bytes) 作成者:
Eyal Ben-Hur
Vectorized version of nchoosek function for multiple k's
Returns the Binomial coefficient for each element in k for a given scalar n.
k may have any shape.
n must be scalar.
Example:
k = [4 5 6];
n = 10;
C = nCk(n,k)
C =
210 252 210
引用
Eyal Ben-Hur (2025). nCk(n,k) (https://www.mathworks.com/matlabcentral/fileexchange/61348-nck-n-k), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
作成:
R2011a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxカテゴリ
Help Center および MATLAB Answers で Constants and Test Matrices についてさらに検索
タグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!バージョン | 公開済み | リリース ノート | |
---|---|---|---|
1.0.0.0 | Added an example |