choose.m

compute number of ways of choosing m objects from n distinct objects
2,3K Downloads
Aktualisiert 19. Mai 2009

Lizenz anzeigen

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.

Zitieren als

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

Kompatibilität der MATLAB-Version
Erstellt mit R2008b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Elementary Math finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.1.0.0

Fixed wording of header comment.

1.0.0.0