ordering a list of number?

2 次查看(过去 30 天)
kevin
kevin 2012-4-2
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?

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by