n permute k
Version 1.1.0.0 (2,36 KB) von
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.
Zitieren als
Eydrian (2026). n permute k (https://de.mathworks.com/matlabcentral/fileexchange/40546-n-permute-k), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2012b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Mathematics > Elementary Math >
Mehr zu Elementary Math finden Sie in Help Center und MATLAB Answers
Tags
Quellenangaben
Inspiriert von: N_PERMUTE_K
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.1.0.0 | Changed description
|
||
| 1.0.0.0 |