n permute k
Version 1.1.0.0 (2,36 ko) par
Eydrian
Based on Matt Fig's npermutek this function returns all possible permutations of most matlab classes
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.
Citation pour cette source
Eydrian (2026). n permute k (https://fr.mathworks.com/matlabcentral/fileexchange/40546-n-permute-k), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2012b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Mathematics > Elementary Math >
En savoir plus sur Elementary Math dans Help Center et MATLAB Answers
Tags
Remerciements
Inspiré par : N_PERMUTE_K
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.1.0.0 | Changed description
|
||
| 1.0.0.0 |