How can I get all arranged different numbers from the given numbers?
4 views (last 30 days)
Show older comments
Le Xuan Thang
on 2 Jun 2019
Commented: Le Xuan Thang
on 2 Jun 2019
Hello every one!
Can anyone can show me how can I get all arranged different numbers from the given numbers?
If that number is: 12 that equal 21 so we delete 21. Then we have matrix.
Like: if I was given 1 2 3 4 then i will arrange like this
Case 1:1 digit
we get: Maxtrix (1)= [1; 2;3;4] ;
Case 2:2 digit
we get: Maxtrix (2)= [1 2 ; 1 3; 1 4; 2 3; 2 4; 3 4];
Case 3:3 digit
we get: Maxtrix (3)= [1 2 3; 1 2 4; 1 3 4; 2 3 4];
Case 4:4 digit
we get: Maxtrix (4)= [1 2 3 4];
0 Comments
Accepted Answer
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!