Table Of Contents

nchoosek

Version:
    Last Modified: March 15, 2017

    Computes a binomial coefficient.

    Syntax

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

    Inputs

    a

    Non-negative integer.

    b

    Non-negative integer.

    v

    Vector of any type.

    Outputs

    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: This product does not support FPGA devices


    Recently Viewed Topics