nCtwo

All combinations of N elements taken two at the time.

Al momento, stai seguendo questo contributo

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.

Cita come

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

Riconoscimenti

Ispirato: nchoose2, VChooseK

Categorie

Scopri di più su Linear Algebra in Help Center e MATLAB Answers

Informazioni generali

Compatibilità della release di MATLAB

  • Compatibile con qualsiasi release

Compatibilità della piattaforma

  • Windows
  • macOS
  • Linux
Versione Pubblicato Note della release Action
1.0.0.0