Filter löschen
Filter löschen

how to find subsets

14 Ansichten (letzte 30 Tage)
math search
math search am 2 Jun. 2014
Beantwortet: math search am 2 Jun. 2014
Hi, if we have a set A={1,2,3,4,5,6} how can we find its subsets with four and five elements.

Antworten (2)

Mischa Kim
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.

math search
math search am 2 Jun. 2014
Thank you for the reply.

Community Treasure Hunt

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

Start Hunting!

Translated by