generating the list of permutations

9 vues (au cours des 30 derniers jours)
Anand Anand
Anand Anand le 24 Mar 2011
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

Réponse acceptée

Andrew Newell
Andrew Newell le 24 Mar 2011

Plus de réponses (2)

Matt Fig
Matt Fig le 24 Mar 2011
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 commentaire
Andrew Newell
Andrew Newell le 24 Mar 2011
Or Google 'Matlab permutations'.

Connectez-vous pour commenter.


Anand Anand
Anand Anand le 25 Mar 2011
thanks a lot..I did not know that ..

Catégories

En savoir plus sur Google dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by