Undefined function 'combntns' for input arguments of type 'double'.

2 visualizaciones (últimos 30 días)
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'.

Respuesta aceptada

Walter Roberson
Walter Roberson el 3 de Mzo. de 2021
https://www.mathworks.com/help/map/ref/combntns.html
the function is part of the Mapping Toolbox. Use nchoosek instead.
  2 comentarios
Khairul nur
Khairul nur el 3 de Mzo. de 2021
i tried it..works for me! thank you for the suggestion :)
超锋 王
超锋 王 el 20 de Jul. de 2021
combntns([1 2 3 4 5 6 7 8 9 10 11],9)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by