nCtwo

All combinations of N elements taken two at the time.
ダウンロード: 1.1K
更新 2008/5/29

ライセンスの表示

Usage - vec=nCtwo(dat) where dat is a vector of length N, produces a matrix with N*(N-1)/2 rows and 2 columns. Each row of the result vec has two of the elements in the vector dat. Similar to the MATLAB function NCHOOSEK(dat,2) but much faster.

引用

Simone Scaringi (2024). nCtwo (https://www.mathworks.com/matlabcentral/fileexchange/20110-nctwo), MATLAB Central File Exchange. 取得済み .

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

ヒントを与えたファイル: nchoose2, VChooseK

Community Treasure Hunt

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

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