How can I get all arranged different numbers from the given numbers?
조회 수: 4 (최근 30일)
이전 댓글 표시
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
채택된 답변
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!