choose.m

compute number of ways of choosing m objects from n distinct objects
2.3K 次下载
更新时间 2009/5/19

查看许可证

choose(n,m) computes the number of ways of choosing m objects from n distinct objects. The simplest definition of choose(n,m) is n! / (m! * (n-m)!), but the following algorithm is somewhat less susceptible to overflow, and is faster than Matlab's builtin nchoosek function.

引用格式

Phillip M. Feldman (2024). choose.m (https://www.mathworks.com/matlabcentral/fileexchange/24137-choose-m), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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

Fixed wording of header comment.

1.0.0.0