perm = ONEPERM(N,M) returns the M-th permutation of the sorted list of all permutations from PERMS, where M=1 corresponds to identity permutation. N, M are non-negative scalar, perm has size 1-by-N.
Makes use of a fast algorithm to generate a single permutation.
See also PERMS
and NPERMUTEK, RECPERMS, NEXTPERM, PERMS1 on the File Exchange
Cite As
Darren Rowland (2024). ONEPERM (https://www.mathworks.com/matlabcentral/fileexchange/23067-oneperm), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on RF Component Modeling in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: nthperm
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.0 |