# perms

Version:

Computes all permutations of the input elements.

## Syntax

c = perms(a)

## 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.

## 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