Statistics Toolbox
  Go to function:
    Search    Help Desk 
perms    Examples

All permutations.

Syntax

Description

P = perms(v), where v is a row vector of length n, creates a matrix whose rows consist of all possible permutations of the n elements of v. The matrix, P, contains n! rows and n columns.

perms is only practical when n is less than 8 or 9.

Example



[ Previous | Help Desk | Next ]