nCtwo

All combinations of N elements taken two at the time.
1,1K téléchargements
Mise à jour 29 mai 2008

Afficher la licence

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.

Citation pour cette source

Simone Scaringi (2024). nCtwo (https://www.mathworks.com/matlabcentral/fileexchange/20110-nctwo), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R14
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Linear Algebra dans Help Center et MATLAB Answers
Remerciements

A inspiré : nchoose2, VChooseK

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0