Table Of Contents

perms

Version:
    Last Modified: March 15, 2017

    Computes all permutations of the input elements.

    Syntax

    c = perms(a)

    Inputs

    a

    Input elements for which you want to compute permutations. a is a vector or a matrix and must have fewer than 15 elements. a can also be a struct. If a is a matrix, MathScript flattens a before the permutation.

    Outputs

    c

    All permutations of the elements in a. c is a matrix with a! rows.

    C = perms('abc')
    D = perms([3:6])

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics