I was wondering where I could find fast algorithms for calculating permutations. I tried using a matlab built in code perms() and it calculates a matrix of values. I would like to output each permutation individually (i.e. in a for loop) so i can perform some manipulations on them. Thanks in advance.

MT