how to find subsets

Hi, if we have a set A={1,2,3,4,5,6} how can we find its subsets with four and five elements.

Risposte (2)

Mischa Kim
Mischa Kim il 2 Giu 2014
Modificato: Mischa Kim il 2 Giu 2014
Hello, use nchoosek
A = [1,2,3,4,5,6];
subsA = nchoosek(A,4)
for four elements, for example.

Categorie

Richiesto:

il 2 Giu 2014

Risposto:

il 2 Giu 2014

Community Treasure Hunt

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

Start Hunting!

Translated by