nCtwo

All combinations of N elements taken two at the time.

Ahora está siguiendo esta publicación

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.

Citar como

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

Agradecimientos

Inspiración para: nchoose2, VChooseK

Categorías

Más información sobre Linear Algebra en Help Center y MATLAB Answers.

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.0.0.0