Undefined function 'combntns' for input arguments of type 'double'.
4 views (last 30 days)
Show older comments
Hi all,
i looking any matlab function that can calculate 'combination' such as (3 C 2) =3.
There is a matlab function for (5 C 3)=10, but returns errors as following. Please help me to suggest
combos = combntns(1:5,3)
error:
Undefined function 'combntns' for input arguments of type 'double'.
0 Comments
Accepted Answer
Walter Roberson
on 3 Mar 2021
https://www.mathworks.com/help/map/ref/combntns.html
the function is part of the Mapping Toolbox. Use nchoosek instead.
2 Comments
More Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!