Choosenk.m
Version 1.0.0.0 (396 Bytes) by
Faryad
number of ways of choosing k objects from n objects
% This code does the same job of "nchoosek(n,k)" builtin code for
% the number of ways of choosing k objects from n distinct objects.
% The mathematical definition is C=n!/(n-k)!/k!
% This code is pretty faster than the MATLAB builtin code.
Cite As
Faryad (2024). Choosenk.m (https://www.mathworks.com/matlabcentral/fileexchange/47107-choosenk-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2012b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Create System Objects in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |