ONEPERM

Obtain a single permutation of the numbers 1:N

Al momento, stai seguendo questo contributo

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

Cita come

Darren Rowland (2026). ONEPERM (https://it.mathworks.com/matlabcentral/fileexchange/23067-oneperm), MATLAB Central File Exchange. Recuperato .

Riconoscimenti

Ispirato: nthperm

Informazioni generali

Compatibilità della release di MATLAB

  • Compatibile con qualsiasi release

Compatibilità della piattaforma

  • Windows
  • macOS
  • Linux
Versione Pubblicato Note della release Action
1.0.0.0