Problem 2949. Combination logic
Create an algorithm in MATLAB that calculate the combination for the given positive integers n and k as inputs. When k > n, the result is 0. The formula of the combination, for n >= k, can be seen below:

Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers65
Suggested Problems
-
4436 Solvers
-
1412 Solvers
-
Flip the main diagonal of a matrix
848 Solvers
-
5142 Solvers
-
Back to Basics - Find no. of elements in a matrix?
315 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!