n permute k

Versión 1.1.0.0 (2,36 KB) por Eydrian
Based on Matt Fig's npermutek this function returns all possible permutations of most matlab classes
938 descargas
Actualizado 28 feb 2013

Ver licencia

Permutation of elements with replacement/repetition. MAT = npermutek(N,K) returns all possible samplings of length K from vector N of type: ordered sample with replacement. MAT has size (numel(N)^K)-by-K, where K must be a scalar. [MAT, IDX] = npermutek(N,K) also returns IDX such that MAT = N(IDX).
N may be of any numeric class, char, cell, struct, or even obj.

Citar como

Eydrian (2024). n permute k (https://www.mathworks.com/matlabcentral/fileexchange/40546-n-permute-k), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2012b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Elementary Math en Help Center y MATLAB Answers.
Agradecimientos

Inspirado por: N_PERMUTE_K

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.1.0.0

Changed description
Cell example was wrong

1.0.0.0