matlab函数perms:排列产生函数
来源:互联网 发布:js设置div里面的内容 编辑:程序博客网 时间:2024/05/04 05:02
perms
产生所有可能的排列
语法
P = perms(v)
P =perms(v),这里v是一个长度为n的行向量,此函数产生v中这n个元素的全排列矩阵,每行为一个排列。矩阵P包含有n!行和n列。
举例
命令perms(2:2:6) 返回数字2、4和6的所有排列:
6 4 2
6 2 4
4 6 2
4 2 6
2 4 6
2 6 4
局限
此函数值只能适用于n < 15的情况下。
相关函数
nchoosek, permute, randperm
--------------------------------------------------
perms
All possible permutations
Syntax
P = perms(v)
P = perms(v), where v is a row vector of length n, creates a matrixwhose rows consist of all possible permutations of the n elementsof v. Matrix P contains n! rows and n columns.
Examples
The command perms(2:2:6) returns all the permutations of thenumbers 2, 4, and 6:
6 4 2
6 2 4
4 6 2
4 2 6
2 4 6
2 6 4
Limitations
This function is only practical for situations where n is less thanabout 15.
See Also
nchoosek, permute, randperm
the original url :http://blog.sina.com.cn/s/blog_5fba9d0d0100fi8j.html
产生所有可能的排列
语法
P = perms(v)
P =perms(v),这里v是一个长度为n的行向量,此函数产生v中这n个元素的全排列矩阵,每行为一个排列。矩阵P包含有n!行和n列。
举例
命令perms(2:2:6) 返回数字2、4和6的所有排列:
局限
此函数值只能适用于n < 15的情况下。
相关函数
nchoosek, permute, randperm
【jink2005译】
--------------------------------------------------
perms
All possible permutations
Syntax
P = perms(v)
P = perms(v), where v is a row vector of length n, creates a matrixwhose rows consist of all possible permutations of the n elementsof v. Matrix P contains n! rows and n columns.
Examples
The command perms(2:2:6) returns all the permutations of thenumbers 2, 4, and 6:
Limitations
This function is only practical for situations where n is less thanabout 15.
See Also
nchoosek, permute, randperm
the original url :http://blog.sina.com.cn/s/blog_5fba9d0d0100fi8j.html
- matlab函数perms:排列产生函数
- matlab perms函数 产生…
- matlab2c使用c++实现matlab函数系列教程-perms函数
- 自己编写产生随机数函数--MATLAB实现
- matlab的rand()函数产生均匀分布函数的正确用法
- 排列函数
- MATLAB中常用的排列、组合与阶乘等函数
- MATLAB中常用的排列、组合、阶乘函数
- MATLAB中常用的排列、组合、阶乘函数
- MATLAB中产生高斯白噪声,涉及到awgn和wgn函数
- Matlab中产生正态分布随机数的函数normrnd
- Matlab 中如何用rand函数产生相同随机数
- MATLAB中常用的产生随机数的几种函数
- 基于MATLAB的m序列产生函数及其调用方法
- matlab的rand()函数产生均匀分布函数的正确用法 / matlab 中如何产生0-1上均匀分布的随机数
- Matlab中产生正态分布随机数的函数normrnd-----用来产生高斯随机矩阵
- matlab函数
- MATLAB函数
- 基于ASP.NET多层架构下的企业级进销存软件全程培训(涉及ASP.NET控件+juqery实现)
- Google C++编程风格指南之代码注释
- xib init
- Android中手势监听GestureDetector基础&android:onTouch()和onTouchEvent()的区别
- android图片上传
- matlab函数perms:排列产生函数
- 基于Winform上海某房产中介管理系统全程开发
- OCP-1Z0-053-V12.02-320题
- JRE system library跟Java EE libraries包中的jar文件有什么区别,若不小心移除怎么还原啊?
- USB控制器的初始化和枚举
- 提高数据库查询效率的方法
- 那什么。。。。Google炮灰纪念
- apache访问日志access.log的解析以及如何将其导入mysql
- strdup函数