How to breakdown n data into all possible k groups

1 次查看(过去 30 天)
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,

采纳的回答

Guillaume
Guillaume 2015-8-19
A quick google search find this file exchange entry

更多回答(1 个)

Konstantinos Belivanis
I guess my Google is not as smart as yours...

类别

Help CenterFile Exchange 中查找有关 Google 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by