Borrar filtros
Borrar filtros

ordering a list of number?

2 visualizaciones (últimos 30 días)
kevin
kevin el 2 de Abr. de 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?

Respuesta aceptada

Thomas
Thomas el 2 de Abr. de 2012
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 Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by