perms1

returns a single permutation of the numbers 1:n
749 download
Aggiornato 21 nov 2006

Visualizza la licenza

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

Cita come

Khaled Hamed (2025). perms1 (https://it.mathworks.com/matlabcentral/fileexchange/13060-perms1), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2006b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Handle Classes in Help Center e MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0