kth permutation in lexicographical order

Version 1.0.0 (1.42 KB) by Alexander H
This function return the kth permutation in lexicographical order.
37 Downloads
Updated 13 Mar 2019

View License

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 Linux
Categories
Find more on Construction in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0