ONECOMB

Obtain a single combination of N numbers taken K at a time.
ダウンロード: 982
更新 2009/2/22

ライセンスの表示

comb = ONECOMB(N,K,M) returns the M-th combination of the sorted list of all combinations from NCHOOSEK.
Makes use of a fast algorithm for the generation of a single combination.

NCHOOSEK(1:4,3) =
[ 1 2 3
1 2 4
1 3 4
2 3 4 ]

onecomb(4,3,3) =
[ 1 3 4 ]

引用

Darren Rowland (2024). ONECOMB (https://www.mathworks.com/matlabcentral/fileexchange/23064-onecomb), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R14
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersPassivity and Sector Bounds についてさらに検索
謝辞

ヒントを与えたファイル: MATLAB PPT

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0