How to create all possible outcome of a set amount of variables?
1 次查看(过去 30 天)
显示 更早的评论
So i have 3 numbers from 1-3. How would i create a matrix of all the possible outcome without repeating the number in each matrix.
such as
[1,2,3]
[3,2,1]
[2,1,3,]
[3,1,2]
......etc
Then display how many different combination there was.
The example i provided there are 4 rows total.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!