Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
Using lexical order on the set {1, 2, ..., N}, outputs the next permutation of the ordered tuple x. You have exhausted the list when All(nextperm(x,N) == x) is TRUE.
For example
nextperm([1 5 4], 5) returns [2 1 3]
nextperm([2 1 3], 5) returns [2 1 4]
nextperm([5 4 3], 5) returns [5 4 3]
Citation pour cette source
Steven Gregory (2026). nextperm (https://fr.mathworks.com/matlabcentral/fileexchange/22692-nextperm), MATLAB Central File Exchange. Extrait(e) le .
Remerciements
Inspiré par : modinv(x, N), logmod
A inspiré : Fast batch generation of permutations, logmod, modinv(x, N), egcd.m
Informations générales
- Version 1.1.0.0 (1,27 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.1.0.0 | Made a small change in the description of the function. |
||
| 1.0.0.0 |
