How can I get all arranged different numbers from the given numbers?

3 visualizaciones (últimos 30 días)
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];

Respuesta aceptada

Walter Roberson
Walter Roberson el 2 de Jun. de 2019

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by