File Exchange

image thumbnail

kth permutation in lexicographical order

version 1.0.0 (1.42 KB) by Alexander H
This function return the kth permutation in lexicographical order.

0 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.

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux