How can I get all arranged different numbers from the given numbers?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Le Xuan Thang
le 2 Juin 2019
Commenté : Le Xuan Thang
le 2 Juin 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 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!