I am quite new with Matlab, is there any buddy have idea how can I generate a combination of numbers with groups of varying size? For example, the number is 1, 2 ,3, 4, 5 ,6, 7 I want to generate a combination with groups like {[1 2],[3 5],[4 6 7]} or {[1],[2],[3],[4],[5],[6],[7]}, or {[1 2 3],[4 5 6],[7]}. Each group can maximumly only have 3 numbers Can any buddy instruct me how to implement this? with great thanks.
MATLAB: Can Matlab randomly generate a combination with groups of varying size
random number generator
Related Question
- How to write a function that randomly sorts numbers into equal groups
- Creating permutations of all possible non-repeated combinations within N elements
- Non-repeating random integer generator with a seed
- How to generate a fixed number of float numbers and their sum is a fixed float number
- Create Random number and controll generated number
- How can we generate random numbers between two negative values.
Best Answer