ONECOMB

版本 1.0.0.0 (2.1 KB) 作者: Darren Rowland
Obtain a single combination of N numbers taken K at a time.
982.0 次下载
更新时间 2009/2/22

查看许可证

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 ]

引用格式

Darren Rowland (2024). ONECOMB (https://www.mathworks.com/matlabcentral/fileexchange/23064-onecomb), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Passivity and Sector Bounds 的更多信息
致谢

启发作品: MATLAB PPT

Community Treasure Hunt

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

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