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일

2 개 추천

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

댓글 수: 1

Jisha
Jisha 2012년 4월 2일
Thanks , i was looking for this as well..

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

질문:

2012년 4월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by