how to find subsets
Afficher commentaires plus anciens
Hi, if we have a set A={1,2,3,4,5,6} how can we find its subsets with four and five elements.
Réponses (2)
Mischa Kim
le 2 Juin 2014
Modifié(e) : Mischa Kim
le 2 Juin 2014
Hello, use nchoosek
A = [1,2,3,4,5,6];
subsA = nchoosek(A,4)
for four elements, for example.
math search
le 2 Juin 2014
0 votes
Catégories
En savoir plus sur Discrete Math dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!