You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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
Cite As
Paulo Fonte (2026). Combin2Rank (https://se.mathworks.com/matlabcentral/fileexchange/22717-combin2rank), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0.0 (1.77 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
