choose.m
Versione 1.1.0.0 (1,34 KB) da
Phillip M. Feldman
compute number of ways of choosing m objects from n distinct objects
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.
Cita come
Phillip M. Feldman (2024). choose.m (https://www.mathworks.com/matlabcentral/fileexchange/24137-choose-m), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2008b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Mathematics > Elementary Math >
- MATLAB > Mathematics > Elementary Math > Discrete Math >
Scopri di più su Elementary Math in Help Center e MATLAB Answers
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.