How to breakdown n data into all possible k groups
Ältere Kommentare anzeigen
Hello all,
what I want to do is to break down n data (e.g. 4 for illustration purposes) into all possible 2 groups.
For 1 2 3 4 for example all possible 2 groups are
1 & 2 3 4
2 & 1 3 4
3 & 1 2 4
4 & 1 2 3
1 2 & 3 4
1 3 & 2 4
1 4 & 2 3
I hope you can understand what I mean. Of course order is not an issue in this case.
Regards,
Akzeptierte Antwort
Weitere Antworten (1)
Konstantinos Belivanis
am 19 Aug. 2015
0 Stimmen
1 Kommentar
Guillaume
am 19 Aug. 2015
The important keyword is partition.
Kategorien
Mehr zu Web Services finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!