kth permutation in lexicographical order

This function return the kth permutation in lexicographical order.

You are now following this Submission

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.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0