Every combination of elements
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Dimitri
le 22 Juil 2019
Réponse apportée : Fangjun Jiang
le 22 Juil 2019
Hello,
I need to create every combination of the elements in a vector. For example I have the vector a=[2,3,1]. I need to split this vector into (1,2), (1,3), (2,3). Or if I have [1,2,3,4] I need to get (1,2) (1,3) (1,4) (2,3) (2,4) and (3,4). Is there a command for this kind of problem?
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!