n permute k

版本 1.1.0.0 (2.4 KB) 作者: Eydrian
Based on Matt Fig's npermutek this function returns all possible permutations of most matlab classes
939.0 次下载
更新时间 2013/2/28

查看许可证

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.

引用格式

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

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Elementary Math 的更多信息
致谢

参考作品: N_PERMUTE_K

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Changed description
Cell example was wrong

1.0.0.0