generating the list of permutations

11 ビュー (過去 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 Center および File ExchangeGoogle についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by