how to find subsets
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, if we have a set A={1,2,3,4,5,6} how can we find its subsets with four and five elements.
0 Kommentare
Antworten (2)
Mischa Kim
am 2 Jun. 2014
Bearbeitet: Mischa Kim
am 2 Jun. 2014
Hello, use nchoosek
A = [1,2,3,4,5,6];
subsA = nchoosek(A,4)
for four elements, for example.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Discrete Math finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!