%% All Permutations of Double Integers

v = [2 4 6];
P = perms(v)

% Copyright 2012 The MathWorks, Inc.