Could anyone how to find all possible combinations of number 6 using rng.
Info
This question is closed. Reopen it to edit or answer.
Show older comments
Could anyone how to find all possible combinations of number 6 using rng.
4 Comments
Jan
on 2 May 2018
It is impossible to answer this question. Finding all possible combinations by such a random method like rng is a very bad idea. There are very simple method to calculate combinations in Matlab. It would be a shot in your knee to try to do this randomly. In addition you forgot to mention the details: All combinations with 6 elements, or with 1 to 6 elements? Does the order matter or not?
Prabha Kumaresan
on 2 May 2018
Jan
on 2 May 2018
perms(1:6)
jaah navi
on 3 May 2018
ok.but the combinations of numbers get repeated again.But I actually need is all combinations without repetition of numbers.
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!