permn

版本 1.0.0 (1.3 KB) 作者: Kenneth Johnson
Generate permutations of 1:n and permutation parity.
23.0 次下载
更新时间 2021/2/23

查看许可证

For positive integer n, [p,s] = permn(n) returns all permutations of 1:n as a matrix, size-[factorial(n),n], and also returns the permutation parity s, size-[factorial(n),1]. s(j) is +1 for an even permutation p(j,:), and -1 for an odd permutation.

引用格式

Kenneth Johnson (2024). permn (https://www.mathworks.com/matlabcentral/fileexchange/87749-permn), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2020a
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签
致谢

参考作品: permutationparity

Community Treasure Hunt

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

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