Filter löschen
Filter löschen

ordering a list of number?

2 Ansichten (letzte 30 Tage)
kevin
kevin am 2 Apr. 2012
let say i have 6 different number(J) 1,2,3,4,5,6, how can i use matlab to arrange all possible oder? eg 2,1,3,4,5,6 . 1,2,4,3,5,6 etc?

Akzeptierte Antwort

Thomas
Thomas am 2 Apr. 2012
doc perms
Gives all the permutations of the vector
c=[1,2,3,4,5,6]
perms(c)
  1 Kommentar
Jisha
Jisha am 2 Apr. 2012
Thanks , i was looking for this as well..

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by