ONECOMB
Version 1.0.0.0 (2.1 KB) by
Darren Rowland
Obtain a single combination of N numbers taken K at a time.
comb = ONECOMB(N,K,M) returns the M-th combination of the sorted list of all combinations from NCHOOSEK.
Makes use of a fast algorithm for the generation of a single combination.
NCHOOSEK(1:4,3) =
[ 1 2 3
1 2 4
1 3 4
2 3 4 ]
onecomb(4,3,3) =
[ 1 3 4 ]
Cite As
Darren Rowland (2026). ONECOMB (https://uk.mathworks.com/matlabcentral/fileexchange/23064-onecomb), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Passivity and Sector Bounds in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: MATLAB PPT
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
