nCtwo

All combinations of N elements taken two at the time.

現在この提出コンテンツをフォロー中です。

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 (2026). nCtwo (https://jp.mathworks.com/matlabcentral/fileexchange/20110-nctwo), MATLAB Central File Exchange. に取得済み.

謝辞

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

カテゴリ

Help Center および MATLAB AnswersLinear Algebra についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0