>>perms<< function will do so.
Is there some command in MATLAB that will give me an array of all the possible permutations of a given sequence of numbers?
For example, if I have the sequence 1,2,3, is there a command that will give me the matrix
Not necessarily in that order, but containing all 3! permutations of 1,2,3.