Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
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]
Citar como
Steven Gregory (2026). nextperm (https://es.mathworks.com/matlabcentral/fileexchange/22692-nextperm), MATLAB Central File Exchange. Recuperado .
Agradecimientos
Inspirado por: modinv(x, N), logmod
Inspiración para: Fast batch generation of permutations, logmod, modinv(x, N), egcd.m
Información general
- Versión 1.1.0.0 (1,27 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
