Combin2Rank

版本 1.1.0.0 (1.8 KB) 作者: Paulo Fonte
Calculates the rank (sequential ordinal) of nCk combinations
609.0 次下载
更新时间 2009/1/19

查看许可证

Example:

Combs=nchoosek(1:5,3)
Combs =
1 2 3
1 2 4
1 2 5
1 3 4
1 3 5
1 4 5
2 3 4
2 3 5
2 4 5
3 4 5
Combin2Rank(5,3,Combs)
ans =
1
2
3
4
5
6
7
8
9
10

ref: A Numbering System for Combinations, Gary D. Knott, Communications of the ACM, Jan. 1974, v.17, n.1

引用格式

Paulo Fonte (2024). Combin2Rank (https://www.mathworks.com/matlabcentral/fileexchange/22717-combin2rank), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Antenna and Array Analysis 的更多信息
标签 添加标签

Community Treasure Hunt

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

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

Small programming tweaks.

1.0.0.0