nCtwo

All combinations of N elements taken two at the time.

Sie verfolgen jetzt diese Einreichung

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.

Zitieren als

Simone Scaringi (2026). nCtwo (https://de.mathworks.com/matlabcentral/fileexchange/20110-nctwo), MATLAB Central File Exchange. Abgerufen .

Quellenangaben

Inspiriert: nchoose2, VChooseK

Kategorien

Mehr zu Linear Algebra finden Sie in Help Center und MATLAB Answers

Allgemeine Informationen

Kompatibilität der MATLAB-Version

  • Kompatibel mit allen Versionen

Plattform-Kompatibilität

  • Windows
  • macOS
  • Linux
Version Veröffentlicht Versionshinweise Action
1.0.0.0