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 (2026). Choosenk.m (https://se.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
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
