generating the list of permutations

조회 수: 2 (최근 30일)
Anand Anand
Anand Anand 2011년 3월 24일
I have an array of numbers stored in k ,say k=1:4.I want the list of all permutations from the array (i.e) 1234,1243,and so on..I want the entire list and not just the number of permutations possible..Thanks in advance for any help

채택된 답변

Andrew Newell
Andrew Newell 2011년 3월 24일

추가 답변 (2개)

Matt Fig
Matt Fig 2011년 3월 24일
For future reference, the first thing you should do when you have a question like this is to search the documentation. At the command line, type this:
docsearch('permutations')
  댓글 수: 1
Andrew Newell
Andrew Newell 2011년 3월 24일
Or Google 'Matlab permutations'.

댓글을 달려면 로그인하십시오.


Anand Anand
Anand Anand 2011년 3월 25일
thanks a lot..I did not know that ..

카테고리

Help CenterFile Exchange에서 Google에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by