Effacer les filtres
Effacer les filtres

ordering a list of number?

2 vues (au cours des 30 derniers jours)
kevin
kevin le 2 Avr 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?

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by