Calculates the number of combinations of N objects taken R at a time. This type of sampling is an unordered sample without replacement.
Syntax: function c = ncombr(n,r)
Inputs:
n - number of objects
r - number of objects taken at a time
Output:
c - number of combinations
Cite As
Antonio Trujillo-Ortiz (2024). ncombr (https://www.mathworks.com/matlabcentral/fileexchange/29878-ncombr), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Linear Algebra >
Find more on Linear Algebra 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.