nCtwo

版本 1.0.0.0 (1.5 KB) 作者: Simone Scaringi
All combinations of N elements taken two at the time.
1.1K 次下载
更新时间 2008/5/29

查看许可证

Usage - vec=nCtwo(dat) where dat is a vector of length N, produces a matrix with N*(N-1)/2 rows and 2 columns. Each row of the result vec has two of the elements in the vector dat. Similar to the MATLAB function NCHOOSEK(dat,2) but much faster.

引用格式

Simone Scaringi (2024). nCtwo (https://www.mathworks.com/matlabcentral/fileexchange/20110-nctwo), MATLAB Central File Exchange. 检索时间: .

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

启发作品: nchoose2, VChooseK

Community Treasure Hunt

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

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