nextperm
버전 1.1.0.0 (1.27 KB) 작성자:
Steven Gregory
Outputs the next permutation of the ordered tuple x.
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 (2024). nextperm (https://www.mathworks.com/matlabcentral/fileexchange/22692-nextperm), MATLAB Central File Exchange. 검색됨 .
MATLAB 릴리스 호환 정보
개발 환경:
R2006a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux카테고리
- MATLAB > Mathematics > Linear Algebra >
Help Center 및 MATLAB Answers에서 Linear Algebra에 대해 자세히 알아보기
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!