Undefined function 'combntns' for input arguments of type 'double'.
조회 수: 2 (최근 30일)
이전 댓글 표시
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
채택된 답변
Walter Roberson
2021년 3월 3일
https://www.mathworks.com/help/map/ref/combntns.html
the function is part of the Mapping Toolbox. Use nchoosek instead.
댓글 수: 2
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!