필터 지우기
필터 지우기

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)
  댓글 수: 1
Jisha
Jisha 2012년 4월 2일
Thanks , i was looking for this as well..

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

추가 답변 (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