N_PERMUTE_K

All possible permutations of the elements of set N, taken K at a time, with repetition.

Download
Download

You are now following this Submission

Cite As

Matt Fig (2026). N_PERMUTE_K (https://se.mathworks.com/matlabcentral/fileexchange/11462-n_permute_k), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: permn

Inspired: VChooseKRO, n permute k

Categories

Find more on Elementary Math in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

MathWorks changed the behavior of the DIFF function with character arrays, resulting in an error for this file when called as in the second help example.

Download
1.2.0

Fixed typos (Matlab needs spellchecker for guys like me.)

Download
1.1.0

Cut execution time in half for single output calls. Added full support for single class.

Download
1.0.0

Uploaded the wrong file.

Download