PERMS1(n,b), where n is a positive integer, creates a vector with n columns containing one permutation of the numbers from 1 to n. Input b is
a number between 1 and n! which is the index of the required permutation, such that the output of PERMS1(n,b) for b from 1 to n! is equivalent to
the output from perms(1:n). The order of the permutations is, however, different (e.g.,PERMS1(n,5) does not give the fifth row of the PERMS(1:n) output).
Cite As
Khaled Hamed (2026). perms1 (https://in.mathworks.com/matlabcentral/fileexchange/13060-perms1), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2006b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Programming > Classes > Define Classes > Handle Classes >
Find more on Handle Classes in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
