nextperm

버전 1.1.0.0 (1.27 KB) 작성자: Steven Gregory
Outputs the next permutation of the ordered tuple x.
다운로드 수: 972
업데이트 날짜: 2010/8/12

라이선스 보기

Using lexical order on the set {1, 2, ..., N}, outputs the next permutation of the ordered tuple x. You have exhausted the list when All(nextperm(x,N) == x) is TRUE.

For example
nextperm([1 5 4], 5) returns [2 1 3]
nextperm([2 1 3], 5) returns [2 1 4]
nextperm([5 4 3], 5) returns [5 4 3]

인용 양식

Steven Gregory (2026). nextperm (https://kr.mathworks.com/matlabcentral/fileexchange/22692-nextperm), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2006a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Linear Algebra에 대해 자세히 알아보기
도움

도움 받은 파일: modinv(x, N), logmod

도움 준 파일: Fast batch generation of permutations, logmod, modinv(x, N), egcd.m

버전 게시됨 릴리스 정보
1.1.0.0

Made a small change in the description of the function.

1.0.0.0