Matlab matrices containing all permutations of a sequence
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.
Re: Matlab matrices containing all permutations of a sequence
The >>perms<< function will do so.
Originally Posted by rainer