ordering a list of number?

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?

 Respuesta aceptada

Thomas
Thomas el 2 de Abr. de 2012

2 votos

doc perms
Gives all the permutations of the vector
c=[1,2,3,4,5,6]
perms(c)

1 comentario

Jisha
Jisha el 2 de Abr. de 2012
Thanks , i was looking for this as well..

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 2 de Abr. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by