Previous Up Next

12.2.5  Transforming a cycle into a permutation

A cycle is a type of permutation, but has a different representation.

The cycle2perm command converts a cycle to the cycle written as a permutation.

Example

cycle2perm([1,3,5])
     

0,3,2,5,4,1
          

Previous Up Next