perms - returns all permutations of a vector components
Given a vector x of length n ,the function perms returns all the permutations of x . The size of y is n! x n .
// example 1: x=[4 7 10]; y=perms(x) // example 2: x=[1 5 2 5]; y=perms(x)
permute ,
Farid Belahcene