From 6:00 PM CST Friday, Feb 15th - 2:00 AM CST Sunday, Feb 17th, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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.