kth permutation in lexicographical order
Version 1.0.0 (1.42 KB) by
Alexander H
This function return the kth permutation in lexicographical order.
There are a number of factorial(n) permutations for n elements. This function return the kth permutation in lexicographical order.
Should work on all Matlab versions.
Cite As
W He (2019). kth permutation in lexicographical order (https://www.mathworks.com/matlabcentral/fileexchange/<...>), MATLAB Central File Exchange. Retrieved March 13, 2019.
MATLAB Release Compatibility
Created with
R2018b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Construction in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |