nchoosek

Version:

Computes a binomial coefficient.

Syntax

c = nchoosek(a, b)
c = nchoosek(v, b)

a

Non-negative integer.

b

Non-negative integer.

v

Vector of any type.

c

Binomial coefficient a choose b. c is an integer. If a is a vector, c is a matrix with each row being one possible combination with b elements.

C = nchoosek(4, 2)

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported